7 using System.Collections.Generic;
61 public const string BINARY =
"binary";
62 public const string JSON =
"json";
288 public const string TRUE =
"true";
289 public const string FALSE =
"false";
436 public IList<byte[]>
list {
get; set; } =
new List<byte[]>();
442 public IList<string>
list_str {
get; set; } =
new List<string>();
644 public IDictionary<string, string>
options {
get; set; } =
new Dictionary<string, string>();
850 IDictionary<string, string>
options = null)
852 this.table_name = table_name ??
"";
853 this.list =
list ??
new List<byte[]>();
854 this.list_str =
new List<string>();
856 this.options =
options ??
new Dictionary<string, string>();
1082 IDictionary<string, string>
options = null)
1084 this.table_name = table_name ??
"";
1085 this.list =
list ??
new List<byte[]>();
1086 this.list_str = list_str ??
new List<string>();
1088 this.options =
options ??
new Dictionary<string, string>();
1312 public struct Options
1348 public const string UPDATE_ON_EXISTING_PK =
"update_on_existing_pk";
1349 public const string TRUE =
"true";
1350 public const string FALSE =
"false";
1390 public const string IGNORE_EXISTING_PK =
"ignore_existing_pk";
1407 public const string RETURN_RECORD_IDS =
"return_record_ids";
1424 public const string TRUNCATE_STRINGS =
"truncate_strings";
1445 public const string RETURN_INDIVIDUAL_ERRORS =
"return_individual_errors";
1464 public const string ALLOW_PARTIAL_BATCH =
"allow_partial_batch";
1481 public const string DRY_RUN =
"dry_run";
1490 public string table_name {
get; set; }
1497 public IList<T> data {
get; set; } =
new List<T>();
1682 public IDictionary<string, string> options {
get; set; } =
new Dictionary<string, string>();
1888 IDictionary<string, string> options = null)
1890 this.table_name = table_name ??
"";
1891 this.data = data ??
new List<T>();
1892 this.options = options ??
new Dictionary<string, string>();
1940 public IList<string>
record_ids {
get; set; } =
new List<string>();
1965 public IDictionary<string, string>
info {
get; set; } =
new Dictionary<string, string>();
int count_inserted
The number of records inserted.
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.
InsertRecordsRequest()
Constructs an InsertRecordsRequest object with default 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.
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.
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...
InsertRecordsRequest(string table_name, IList< T > data, IDictionary< string, string > options=null)
Constructs an InsertRecordsRequest object with the specified parameters.
IDictionary< string, string > options
Optional parameters.
RawInsertRecordsRequest()
Constructs a RawInsertRecordsRequest object with default parameters.
string list_encoding
The encoding of the records to be inserted.
The encoding of the records to be inserted.
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.insertRecords{T}(string,IList{T},IDictionary{string, string}).
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{T}(string,IList{T},IDictionary{string, string}).
KineticaData - class to help with Avro Encoding for Kinetica