Kinetica C# API  Version 6.1.0.0
InsertRecords.cs
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 
7 using System.Collections.Generic;
8 
9 
10 
11 namespace kinetica
12 {
13 
38  {
39 
56  public struct ListEncoding
57  {
58  public const string BINARY = "binary";
59  public const string JSON = "json";
60  } // end struct ListEncoding
61 
62 
121  public struct Options
122  {
123 
148  public const string UPDATE_ON_EXISTING_PK = "update_on_existing_pk";
149  public const string TRUE = "true";
150  public const string FALSE = "false";
151 
167  public const string RETURN_RECORD_IDS = "return_record_ids";
168 
171  public const string ROUTE_TO_ADDRESS = "route_to_address";
172  } // end struct Options
173 
174 
177  public string table_name { get; set; }
178 
184  public IList<byte[]> list { get; set; } = new List<byte[]>();
185 
190  public IList<string> list_str { get; set; } = new List<string>();
191 
207  public string list_encoding { get; set; } = ListEncoding.BINARY;
208 
265  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
266 
267 
271 
340  IList<byte[]> list,
341  IDictionary<string, string> options = null)
342  {
343  this.table_name = table_name ?? "";
344  this.list = list ?? new List<byte[]>();
345  this.list_str = new List<string>();
347  this.options = options ?? new Dictionary<string, string>();
348  } // end constructor
349 
350 
440  IList<byte[]> list,
441  IList<string> list_str,
442  string list_encoding = null,
443  IDictionary<string, string> options = null)
444  {
445  this.table_name = table_name ?? "";
446  this.list = list ?? new List<byte[]>();
447  this.list_str = list_str ?? new List<string>();
448  this.list_encoding = list_encoding ?? ListEncoding.BINARY;
449  this.options = options ?? new Dictionary<string, string>();
450  } // end full constructor
451 
452  } // end class RawInsertRecordsRequest
453 
454 
455 
483  {
484 
543  public struct Options
544  {
545 
570  public const string UPDATE_ON_EXISTING_PK = "update_on_existing_pk";
571  public const string TRUE = "true";
572  public const string FALSE = "false";
573 
589  public const string RETURN_RECORD_IDS = "return_record_ids";
590 
593  public const string ROUTE_TO_ADDRESS = "route_to_address";
594  } // end struct Options
595 
596 
599  public string table_name { get; set; }
600 
606  public IList<T> data { get; set; } = new List<T>();
607 
664  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
665 
666 
669  public InsertRecordsRequest() { }
670 
739  IList<T> data,
740  IDictionary<string, string> options = null)
741  {
742  this.table_name = table_name ?? "";
743  this.data = data ?? new List<T>();
744  this.options = options ?? new Dictionary<string, string>();
745  } // end constructor
746 
747  } // end class InsertRecordsRequest
748 
749 
750 
755  {
756 
759  public IList<string> record_ids { get; set; } = new List<string>();
760 
762  public int count_inserted { get; set; }
763 
765  public int count_updated { get; set; }
766 
767  } // end class InsertRecordsResponse
768 
769 
770 
771 
772 } // end namespace kinetica
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.
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.
InsertRecordsRequest()
Constructs an InsertRecordsRequest object with default 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.
InsertRecordsRequest(string table_name, IList< T > data, IDictionary< string, string > options=null)
Constructs an InsertRecordsRequest object with the specified parameters.
The encoding of the records to be inserted.
A set of parameters for Kinetica.insertRecords<T>(string,IList<T>,IDictionary<string, string>).
A set of parameters for Kinetica.insertRecords<T>(string,IList<T>,IDictionary<string, string>).
A set of results returned by Kinetica.insertRecords<T>(string,IList<T>,IDictionary<string, string>).
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14