Kinetica C# API  Version 6.2.0.1
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 
35  {
36 
53  public struct ListEncoding
54  {
55  public const string BINARY = "binary";
56  public const string JSON = "json";
57  } // end struct ListEncoding
58 
59 
112  public struct Options
113  {
114 
139  public const string UPDATE_ON_EXISTING_PK = "update_on_existing_pk";
140  public const string TRUE = "true";
141  public const string FALSE = "false";
142 
158  public const string RETURN_RECORD_IDS = "return_record_ids";
159  } // end struct Options
160 
161 
164  public string table_name { get; set; }
165 
171  public IList<byte[]> list { get; set; } = new List<byte[]>();
172 
177  public IList<string> list_str { get; set; } = new List<string>();
178 
194  public string list_encoding { get; set; } = ListEncoding.BINARY;
195 
246  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
247 
248 
252 
315  IList<byte[]> list,
316  IDictionary<string, string> options = null)
317  {
318  this.table_name = table_name ?? "";
319  this.list = list ?? new List<byte[]>();
320  this.list_str = new List<string>();
322  this.options = options ?? new Dictionary<string, string>();
323  } // end constructor
324 
325 
409  IList<byte[]> list,
410  IList<string> list_str,
411  string list_encoding = null,
412  IDictionary<string, string> options = null)
413  {
414  this.table_name = table_name ?? "";
415  this.list = list ?? new List<byte[]>();
416  this.list_str = list_str ?? new List<string>();
417  this.list_encoding = list_encoding ?? ListEncoding.BINARY;
418  this.options = options ?? new Dictionary<string, string>();
419  } // end full constructor
420 
421  } // end class RawInsertRecordsRequest
422 
423 
424 
449  {
450 
503  public struct Options
504  {
505 
530  public const string UPDATE_ON_EXISTING_PK = "update_on_existing_pk";
531  public const string TRUE = "true";
532  public const string FALSE = "false";
533 
549  public const string RETURN_RECORD_IDS = "return_record_ids";
550  } // end struct Options
551 
552 
555  public string table_name { get; set; }
556 
562  public IList<T> data { get; set; } = new List<T>();
563 
614  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
615 
616 
619  public InsertRecordsRequest() { }
620 
683  IList<T> data,
684  IDictionary<string, string> options = null)
685  {
686  this.table_name = table_name ?? "";
687  this.data = data ?? new List<T>();
688  this.options = options ?? new Dictionary<string, string>();
689  } // end constructor
690 
691  } // end class InsertRecordsRequest
692 
693 
694 
699  {
700 
703  public IList<string> record_ids { get; set; } = new List<string>();
704 
706  public int count_inserted { get; set; }
707 
709  public int count_updated { get; set; }
710 
711  } // end class InsertRecordsResponse
712 
713 
714 
715 
716 } // 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