7 using System.Collections.Generic;
55 public const string BINARY =
"binary";
56 public const string JSON =
"json";
223 public const string TRUE =
"true";
224 public const string FALSE =
"false";
328 public IList<byte[]>
list {
get; set; } =
new List<byte[]>();
334 public IList<string>
list_str {
get; set; } =
new List<string>();
486 public IDictionary<string, string>
options {
get; set; } =
new Dictionary<string, string>();
639 IDictionary<string, string>
options = null)
641 this.table_name = table_name ??
"";
642 this.list =
list ??
new List<byte[]>();
643 this.list_str =
new List<string>();
645 this.options =
options ??
new Dictionary<string, string>();
818 IDictionary<string, string>
options = null)
820 this.table_name = table_name ??
"";
821 this.list =
list ??
new List<byte[]>();
822 this.list_str = list_str ??
new List<string>();
824 this.options =
options ??
new Dictionary<string, string>();
992 public struct Options
1019 public const string UPDATE_ON_EXISTING_PK =
"update_on_existing_pk";
1020 public const string TRUE =
"true";
1021 public const string FALSE =
"false";
1038 public const string RETURN_RECORD_IDS =
"return_record_ids";
1055 public const string TRUNCATE_STRINGS =
"truncate_strings";
1076 public const string RETURN_INDIVIDUAL_ERRORS =
"return_individual_errors";
1095 public const string ALLOW_PARTIAL_BATCH =
"allow_partial_batch";
1112 public const string DRY_RUN =
"dry_run";
1118 public string table_name {
get; set; }
1125 public IList<T> data {
get; set; } =
new List<T>();
1260 public IDictionary<string, string> options {
get; set; } =
new Dictionary<string, string>();
1413 IDictionary<string, string> options = null)
1415 this.table_name = table_name ??
"";
1416 this.data = data ??
new List<T>();
1417 this.options = options ??
new Dictionary<string, string>();
1465 public IList<string>
record_ids {
get; set; } =
new List<string>();
1490 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
Table to which the records are to be added.
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.
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