7 using System.Collections.Generic;
32 private const string Schema_ =
@" 35 ""name"": ""RawInsertRecordsRequest"", 36 ""namespace"": ""kinetica"", 38 { ""name"": ""table_name"", ""type"": ""string"" }, 39 { ""name"": ""list"", ""type"": { ""type"": ""array"", ""items"": ""bytes"" } }, 40 { ""name"": ""list_str"", ""type"": { ""type"": ""array"", ""items"": ""string"" } }, 41 { ""name"": ""list_encoding"", ""type"": ""string"" }, 42 { ""name"": ""options"", ""type"": { ""type"": ""map"", ""values"": ""string"" } } 52 public const string BINARY =
"binary";
53 public const string JSON =
"json";
81 public const string TRUE =
"true";
82 public const string FALSE =
"false";
210 public IList<byte[]>
list {
get;
set; } =
new List<byte[]>();
217 public IList<string>
list_str {
get;
set; } =
new List<string>();
430 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
647 IDictionary<string, string>
options =
null)
650 this.
list =
list ??
new List<byte[]>();
885 IDictionary<string, string>
options =
null)
888 this.
list =
list ??
new List<byte[]>();
889 this.list_str =
list_str ??
new List<string>();
942 public const string TRUE =
"true";
943 public const string FALSE =
"false";
1071 public IList<T>
data {
get;
set; } =
new List<T>();
1270 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
1486 IDictionary<string, string>
options =
null)
1489 this.data =
data ??
new List<T>();
1515 public IList<string>
record_ids {
get;
set; } =
new List<string>();
1538 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string TRUNCATE_STRINGS
If set to TRUE, any strings which are too long for their target charN string columns will be truncate...
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...
A set of string constants for the parameter options.
InsertRecordsRequest(string table_name, IList< T > data, IDictionary< string, string > options=null)
Constructs an InsertRecordsRequest object with the specified parameters.
A set of parameters for Kinetica.insertRecordsRaw.
IList< byte[]> list
An array of binary-encoded data for the records 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...
int count_inserted
The number of records inserted.
KineticaData - class to help with Avro Encoding for Kinetica
const string PK_CONFLICT_PREDICATE_HIGHER
The record with higher value for the column resolves the primary-key insert conflict.
RawInsertRecordsRequest(string table_name, IList< byte[]> list, IDictionary< string, string > options=null)
Constructs a RawInsertRecordsRequest object with the specified parameters.
const string UPDATE_ON_EXISTING_PK
Specifies the record collision policy for inserting into a table with a primary key.
A set of results returned by Kinetica.insertRecords.
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.
const string PK_CONFLICT_PREDICATE_LOWER
The record with lower value for the column resolves the primary-key insert conflict.
A set of string constants for the parameter list_encoding.
IDictionary< string, string > options
Optional parameters.
const string IGNORE_EXISTING_PK
Specifies the record collision error-suppression policy for inserting into a table with a primary key...
const string IGNORE_EXISTING_PK
Specifies the record collision error-suppression policy for inserting into a table with a primary key...
A set of parameters for Kinetica.insertRecords.
RawInsertRecordsRequest()
Constructs a RawInsertRecordsRequest object with default parameters.
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...
IList< string > list_str
An array of JSON encoded data for the records to be added.
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 PK_CONFLICT_PREDICATE_LOWER
The record with lower value for the column resolves the primary-key insert conflict.
IList< T > data
An array of binary-encoded data for the records to be added.
const string PK_CONFLICT_PREDICATE_HIGHER
The record with higher value for the column resolves the primary-key insert conflict.
const string RETURN_RECORD_IDS
If TRUE then return the internal record id along for each inserted record.
InsertRecordsRequest()
Constructs an InsertRecordsRequest object with default parameters.
A set of string constants for the parameter options.
const string BAD_RECORD_INDICES
If return_individual_errors option is specified or implied, returns a comma-separated list of invalid...
string list_encoding
The encoding of the records to be inserted.
const string ERROR_N
Error message for record at index N (0-based).
const string UPDATE_ON_EXISTING_PK
Specifies the record collision policy for inserting into a table with a primary key.
A set of string constants for the parameter info.
const string TRUNCATE_STRINGS
If set to TRUE, any strings which are too long for their target charN string columns will be truncate...
IDictionary< string, string > info
Additional information.
IList< string > record_ids
An array containing the IDs with which the added records are identified internally.
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 DRY_RUN
If set to TRUE, no data will be saved and any errors will be returned.
IDictionary< string, string > options
Optional parameters.
const string DRY_RUN
If set to TRUE, no data will be saved and any errors will be returned.
const string RETURN_RECORD_IDS
If TRUE then return the internal record id along for each inserted record.