7 using System.Collections.Generic;
18 public class CreateProcRequest : KineticaData
23 public struct ExecutionMode
96 public string execution_mode {
get;
set; } = ExecutionMode.DISTRIBUTED;
107 public IDictionary<string, byte[]>
files {
get;
set; } =
new Dictionary<string, byte[]>();
121 public string command {
get;
set; } =
"";
126 public IList<string>
args {
get;
set; } =
new List<string>();
148 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
231 IDictionary<
string,
byte[]>
files =
null,
233 IList<string>
args =
null,
234 IDictionary<string, string>
options =
null)
238 this.
files =
files ??
new Dictionary<string, byte[]>();
240 this.
args =
args ??
new List<string>();
248 public class CreateProcResponse : KineticaData
255 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string SET_ENVIRONMENT
A python environment to use when executing the proc.
IDictionary< string, byte[]> files
A map of the files that make up the proc.
IDictionary< string, string > options
Optional parameters.
CreateProcRequest()
Constructs a CreateProcRequest object with default parameters.
string proc_name
Name of the proc to be created.
const string DISTRIBUTED
Input table data will be divided into data segments that are distributed across all nodes in the clus...
string execution_mode
The execution mode of the proc.
IList< string > args
An array of command-line arguments that will be passed to command when the proc is executed.
string command
The command (excluding arguments) that will be invoked when the proc is executed.
IDictionary< string, string > info
Additional information.
CreateProcRequest(string proc_name, string execution_mode=null, IDictionary< string, byte[]> files=null, string command=null, IList< string > args=null, IDictionary< string, string > options=null)
Constructs a CreateProcRequest object with the specified parameters.
const string MAX_CONCURRENCY_PER_NODE
The maximum number of concurrent instances of the proc that will be executed per node.
string proc_name
Value of proc_name.
A set of string constants for the parameter execution_mode.
const string NONDISTRIBUTED
The proc command will be invoked only once per execution, and will not have direct access to any tabl...