Kinetica C# API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
CreateJob.cs
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 
7 using System.Collections.Generic;
8 
9 
10 
11 namespace kinetica
12 {
13 
24  {
25 
46  public struct RequestEncoding
47  {
48  public const string BINARY = "binary";
49  public const string JSON = "json";
50  public const string SNAPPY = "snappy";
51  } // end struct RequestEncoding
52 
53 
56  public string endpoint { get; set; }
57 
77  public string request_encoding { get; set; } = RequestEncoding.BINARY;
78 
87  public byte[] data { get; set; }
88 
96  public string data_str { get; set; }
97 
100  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
101 
102 
105  public CreateJobRequest() { }
106 
151  public CreateJobRequest( string endpoint,
152  string request_encoding,
153  byte[] data,
154  string data_str,
155  IDictionary<string, string> options = null)
156  {
157  this.endpoint = endpoint ?? "";
158  this.request_encoding = request_encoding ?? RequestEncoding.BINARY;
159  this.data = data ?? new byte[] { };
160  this.data_str = data_str ?? "";
161  this.options = options ?? new Dictionary<string, string>();
162  } // end constructor
163 
164  } // end class CreateJobRequest
165 
166 
167 
172  {
173 
176  public long job_id { get; set; }
177 
179  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
180 
181  } // end class CreateJobResponse
182 
183 
184 
185 
186 } // end namespace kinetica
string data_str
JSON-encoded payload for the job to be run asynchronously.
Definition: CreateJob.cs:96
byte[] data
Binary-encoded payload for the job to be run asynchronously.
Definition: CreateJob.cs:87
The encoding of the request payload for the job.
Definition: CreateJob.cs:46
CreateJobRequest(string endpoint, string request_encoding, byte[] data, string data_str, IDictionary< string, string > options=null)
Constructs a CreateJobRequest object with the specified parameters.
Definition: CreateJob.cs:151
IDictionary< string, string > options
Optional parameters.
Definition: CreateJob.cs:100
IDictionary< string, string > info
Additional information.
Definition: CreateJob.cs:179
A set of results returned by Kinetica.createJob(string,string,byte[],string,IDictionary{string, string}).
Definition: CreateJob.cs:171
string endpoint
Indicates which endpoint to execute, e.g.
Definition: CreateJob.cs:56
string request_encoding
The encoding of the request payload for the job.
Definition: CreateJob.cs:77
long job_id
An identifier for the job created by this call.
Definition: CreateJob.cs:176
A set of parameters for Kinetica.createJob(string,string,byte[],string,IDictionary{string, string}).
Definition: CreateJob.cs:23
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
CreateJobRequest()
Constructs a CreateJobRequest object with default parameters.
Definition: CreateJob.cs:105