7 using System.Collections.Generic;
20 public class CreateJobRequest : KineticaData
26 public struct RequestEncoding
28 public const string BINARY =
"binary";
29 public const string JSON =
"json";
30 public const string SNAPPY =
"snappy";
42 public const string JOB_TAG =
"job_tag";
77 public byte[]
data {
get;
set; }
100 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
159 IDictionary<string, string>
options =
null)
163 this.data =
data ??
new byte[] { };
172 public class CreateJobResponse : KineticaData
181 public const string JOB_TAG =
"job_tag";
185 public const string QUERY_ID =
"query_id";
189 public long job_id {
get;
set; }
206 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
byte [] data
Binary-encoded payload for the job to be run asynchronously.
A set of string constants for the parameter request_encoding.
IDictionary< string, string > info
Additional information.
CreateJobRequest(string endpoint, string request_encoding, byte[] data, string data_str, IDictionary< string, string > options=null)
Constructs a CreateJobRequest object with the specified parameters.
const string QUERY_ID
A unique identifier for this job generated for use in tracing telemetry data
const string JOB_TAG
Tag to use for submitted job.
string request_encoding
The encoding of the request payload for the job.
string endpoint
Indicates which endpoint to execute, e.g.
IDictionary< string, string > options
Optional parameters.
CreateJobRequest()
Constructs a CreateJobRequest object with default parameters.
long job_id
An identifier for the job created by this call.
const string JOB_TAG
The job tag specified by the user or if unspecified by user, a unique identifier generated internally...
string data_str
JSON-encoded payload for the job to be run asynchronously.