7 using System.Collections.Generic;
33 private const string Schema_ =
@" 36 ""name"": ""RawInsertRecordsRequest"", 37 ""namespace"": ""kinetica"", 39 { ""name"": ""table_name"", ""type"": ""string"" }, 40 { ""name"": ""list"", ""type"": { ""type"": ""array"", ""items"": ""bytes"" } }, 41 { ""name"": ""list_str"", ""type"": { ""type"": ""array"", ""items"": ""string"" } }, 42 { ""name"": ""list_encoding"", ""type"": ""string"" }, 43 { ""name"": ""options"", ""type"": { ""type"": ""map"", ""values"": ""string"" } } 53 public const string BINARY =
"binary";
54 public const string JSON =
"json";
83 public const string TRUE =
"true";
84 public const string FALSE =
"false";
203 public IList<byte[]>
list {
get;
set; } =
new List<byte[]>();
210 public IList<string>
list_str {
get;
set; } =
new List<string>();
409 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
612 IDictionary<string, string>
options =
null)
615 this.
list =
list ??
new List<byte[]>();
837 IDictionary<string, string>
options =
null)
840 this.
list =
list ??
new List<byte[]>();
841 this.list_str =
list_str ??
new List<string>();
896 public const string TRUE =
"true";
897 public const string FALSE =
"false";
1016 public IList<T>
data {
get;
set; } =
new List<T>();
1201 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
1403 IDictionary<string, string>
options =
null)
1406 this.data =
data ??
new List<T>();
1433 public IList<string>
record_ids {
get;
set; } =
new List<string>();
1457 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
int count_inserted
The number of records inserted.
const string IGNORE_EXISTING_PK
Specifies the record collision error-suppression policy for inserting into a table with a primary key...
const string UPDATE_ON_EXISTING_PK
Specifies the record collision policy for inserting into a table with a primary key.
IList< string > list_str
An array of JSON encoded data for the records to be added.
string table_name
Name of table to which the records are to be added, in [schema_name.
const string ALLOW_PARTIAL_BATCH
If set to TRUE, all correct records will be inserted and incorrect records will be rejected and repor...
RawInsertRecordsRequest(string table_name, IList< byte[]> list, IDictionary< string, string > options=null)
Constructs a RawInsertRecordsRequest object with the specified parameters.
IList< string > record_ids
An array containing the IDs with which the added records are identified internally.
IList< byte[]> list
An array of binary-encoded data for the records to be added.
A set of string constants for the parameter info.
const string IGNORE_EXISTING_PK
Specifies the record collision error-suppression policy for inserting into a table with a primary key...
RawInsertRecordsRequest(string table_name, IList< byte[]> list, IList< string > list_str, string list_encoding=null, IDictionary< string, string > options=null)
Constructs a RawInsertRecordsRequest object with the specified parameters.
int count_updated
The number of records updated.
string table_name
Name of table to which the records are to be added, in [schema_name.
const string DRY_RUN
If set to TRUE, no data will be saved and any errors will be returned.
const string UPDATE_ON_EXISTING_PK
Specifies the record collision policy for inserting into a table with a primary key.
const string TRUNCATE_STRINGS
If set to TRUE, any strings which are too long for their target charN string columns will be truncate...
const string DRY_RUN
If set to TRUE, no data will be saved and any errors will be returned.
InsertRecordsRequest()
Constructs an InsertRecordsRequest object with default parameters.
IDictionary< string, string > options
Optional parameters.
RawInsertRecordsRequest()
Constructs a RawInsertRecordsRequest object with default parameters.
const string ALLOW_PARTIAL_BATCH
If set to TRUE, all correct records will be inserted and incorrect records will be rejected and repor...
string list_encoding
The encoding of the records to be inserted.
InsertRecordsRequest(string table_name, IList< T > data, IDictionary< string, string > options=null)
Constructs an InsertRecordsRequest object with the specified parameters.
A set of string constants for the parameter options.
IDictionary< string, string > options
Optional parameters.
A set of string constants for the parameter list_encoding.
A set of parameters for Kinetica.insertRecords.
const string RETURN_RECORD_IDS
If TRUE then return the internal record id along for each inserted record.
const string BAD_RECORD_INDICES
If return_individual_errors option is specified or implied, returns a comma-separated list of invalid...
const string ERROR_N
Error message for record at index N (0-based)
A set of parameters for Kinetica.insertRecordsRaw.
const string TRUNCATE_STRINGS
If set to TRUE, any strings which are too long for their target charN string columns will be truncate...
const string RETURN_INDIVIDUAL_ERRORS
If set to TRUE, success will always be returned, and any errors found will be included in the info ma...
const string RETURN_RECORD_IDS
If TRUE then return the internal record id along for each inserted record.
IDictionary< string, string > info
Additional information.
A set of results returned by Kinetica.insertRecords.
KineticaData - class to help with Avro Encoding for Kinetica
IList< T > data
An array of binary-encoded data for the records to be added.
A set of string constants for the parameter options.
const string RETURN_INDIVIDUAL_ERRORS
If set to TRUE, success will always be returned, and any errors found will be included in the info ma...