7 using System.Collections.Generic;
45 public const string BINARY =
"binary";
46 public const string JSON =
"json";
97 public const string TRUE =
"true";
98 public const string FALSE =
"false";
120 public IList<byte[]>
list {
get; set; } =
new List<byte[]>();
126 public IList<string>
list_str {
get; set; } =
new List<string>();
162 public IDictionary<string, string>
options {
get; set; } =
new Dictionary<string, string>();
211 IDictionary<string, string>
options = null)
213 this.table_name = table_name ??
"";
214 this.list =
list ??
new List<byte[]>();
215 this.list_str =
new List<string>();
217 this.options =
options ??
new Dictionary<string, string>();
273 IDictionary<string, string>
options = null)
275 this.table_name = table_name ??
"";
276 this.list =
list ??
new List<byte[]>();
277 this.list_str = list_str ??
new List<string>();
279 this.options =
options ??
new Dictionary<string, string>();
344 public struct Options
359 public const string UPDATE_ON_EXISTING_PK =
"update_on_existing_pk";
360 public const string TRUE =
"true";
361 public const string FALSE =
"false";
366 public const string RETURN_RECORD_IDS =
"return_record_ids";
370 public const string ROUTE_TO_ADDRESS =
"route_to_address";
376 public string table_name {
get; set; }
383 public IList<T> data {
get; set; } =
new List<T>();
414 public IDictionary<string, string> options {
get; set; } =
new Dictionary<string, string>();
463 IDictionary<string, string> options = null)
465 this.table_name = table_name ??
"";
466 this.data = data ??
new List<T>();
467 this.options = options ??
new Dictionary<string, string>();
480 public IList<string>
record_ids {
get; set; } =
new List<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.
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 UPDATE_ON_EXISTING_PK
Specifies the record collision policy for inserting into a table with a primary key.
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 ROUTE_TO_ADDRESS
Route to a specific rank/tom.
A set of parameters for /insert/records.
const string RETURN_RECORD_IDS
If true then return the internal record id along for each inserted record.
A set of results returned by /insert/records.
KineticaData - class to help with Avro Encoding for Kinetica