Kinetica C# API  Version 6.2.0.1
UpdateRecords.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 
40  {
41 
61  public struct RecordEncoding
62  {
63  public const string BINARY = "binary";
64  public const string JSON = "json";
65  } // end struct RecordEncoding
66 
67 
157  public struct Options
158  {
159 
163  public const string GLOBAL_EXPRESSION = "global_expression";
164 
185  public const string BYPASS_SAFETY_CHECKS = "bypass_safety_checks";
186  public const string TRUE = "true";
187  public const string FALSE = "false";
188 
206  public const string UPDATE_ON_EXISTING_PK = "update_on_existing_pk";
207 
227  public const string USE_EXPRESSIONS_IN_NEW_VALUES_MAPS = "use_expressions_in_new_values_maps";
228 
235  public const string RECORD_ID = "record_id";
236  } // end struct Options
237 
238 
241  public string table_name { get; set; }
242 
245  public IList<string> expressions { get; set; } = new List<string>();
246 
253  public IList<IDictionary<string, string>> new_values_maps { get; set; } = new List<IDictionary<string, string>>();
254 
261  public IList<byte[]> records_to_insert { get; set; } = new List<byte[]>();
262 
267  public IList<string> records_to_insert_str { get; set; } = new List<string>();
268 
287  public string record_encoding { get; set; } = RecordEncoding.BINARY;
288 
376  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
377 
378 
382 
491  IList<string> expressions,
492  IList<IDictionary<string, string>> new_values_maps,
493  IList<byte[]> records_to_insert = null,
494  IDictionary<string, string> options = null)
495  {
496  this.table_name = table_name ?? "";
497  this.expressions = expressions ?? new List<string>();
498  this.new_values_maps = new_values_maps ?? new List<IDictionary<string, string>>();
499  this.records_to_insert = records_to_insert ?? new List<byte[]>();
500  this.records_to_insert_str = new List<string>();
502  this.options = options ?? new Dictionary<string, string>();
503  } // end constructor
504 
505 
636  IList<string> expressions,
637  IList<IDictionary<string, string>> new_values_maps,
638  IList<byte[]> records_to_insert = null,
639  IList<string> records_to_insert_str = null,
640  string record_encoding = null,
641  IDictionary<string, string> options = null)
642  {
643  this.table_name = table_name ?? "";
644  this.expressions = expressions ?? new List<string>();
645  this.new_values_maps = new_values_maps ?? new List<IDictionary<string, string>>();
646  this.records_to_insert = records_to_insert ?? new List<byte[]>();
647  this.records_to_insert_str = records_to_insert_str ?? new List<string>();
648  this.record_encoding = record_encoding ?? RecordEncoding.BINARY;
649  this.options = options ?? new Dictionary<string, string>();
650  } // end full constructor
651 
652  } // end class RawUpdateRecordsRequest
653 
654 
655 
685  {
686 
776  public struct Options
777  {
778 
782  public const string GLOBAL_EXPRESSION = "global_expression";
783 
804  public const string BYPASS_SAFETY_CHECKS = "bypass_safety_checks";
805  public const string TRUE = "true";
806  public const string FALSE = "false";
807 
825  public const string UPDATE_ON_EXISTING_PK = "update_on_existing_pk";
826 
846  public const string USE_EXPRESSIONS_IN_NEW_VALUES_MAPS = "use_expressions_in_new_values_maps";
847 
854  public const string RECORD_ID = "record_id";
855  } // end struct Options
856 
857 
860  public string table_name { get; set; }
861 
864  public IList<string> expressions { get; set; } = new List<string>();
865 
872  public IList<IDictionary<string, string>> new_values_maps { get; set; } = new List<IDictionary<string, string>>();
873 
880  public IList<T> data { get; set; } = new List<T>();
881 
969  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
970 
971 
974  public UpdateRecordsRequest() { }
975 
1084  IList<string> expressions,
1085  IList<IDictionary<string, string>> new_values_maps,
1086  IList<T> data = null,
1087  IDictionary<string, string> options = null)
1088  {
1089  this.table_name = table_name ?? "";
1090  this.expressions = expressions ?? new List<string>();
1091  this.new_values_maps = new_values_maps ?? new List<IDictionary<string, string>>();
1092  this.data = data ?? new List<T>();
1093  this.options = options ?? new Dictionary<string, string>();
1094  } // end constructor
1095 
1096  } // end class UpdateRecordsRequest
1097 
1098 
1099 
1104  {
1105 
1107  public long count_updated { get; set; }
1108 
1111  public IList<long> counts_updated { get; set; } = new List<long>();
1112 
1115  public long count_inserted { get; set; }
1116 
1120  public IList<long> counts_inserted { get; set; } = new List<long>();
1121 
1122  } // end class UpdateRecordsResponse
1123 
1124 
1125 
1126 
1127 } // end namespace kinetica
A set of parameters for Kinetica.updateRecords<T>(string,IList<string>,IList<IDictionary<string, string>>,IList<T>,IDictionary<string, string>).
IList< string > expressions
A list of the actual predicates, one for each update; format should follow the guidelines /filter...
string record_encoding
Identifies which of and should be used.
A set of parameters for Kinetica.updateRecords<T>(string,IList<string>,IList<IDictionary<string, string>>,IList<T>,IDictionary<string, string>).
A set of results returned by Kinetica.updateRecords<T>(string,IList<string>,IList<IDictionary<string...
RawUpdateRecordsRequest(string table_name, IList< string > expressions, IList< IDictionary< string, string >> new_values_maps, IList< byte[]> records_to_insert=null, IDictionary< string, string > options=null)
Constructs a RawUpdateRecordsRequest object with the specified parameters.
IList< byte[]> records_to_insert
An optional list of new binary-avro encoded records to insert, one for each update.
UpdateRecordsRequest()
Constructs an UpdateRecordsRequest object with default parameters.
UpdateRecordsRequest(string table_name, IList< string > expressions, IList< IDictionary< string, string >> new_values_maps, IList< T > data=null, IDictionary< string, string > options=null)
Constructs an UpdateRecordsRequest object with the specified parameters.
IList< IDictionary< string, string > > new_values_maps
List of new values for the matching records.
Identifies which of and should be used.
string table_name
Table to be updated.
IDictionary< string, string > options
Optional parameters.
RawUpdateRecordsRequest(string table_name, IList< string > expressions, IList< IDictionary< string, string >> new_values_maps, IList< byte[]> records_to_insert=null, IList< string > records_to_insert_str=null, string record_encoding=null, IDictionary< string, string > options=null)
Constructs a RawUpdateRecordsRequest object with the specified parameters.
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
IList< string > records_to_insert_str
An optional list of new json-avro encoded objects to insert, one for each update, to be added to the ...
RawUpdateRecordsRequest()
Constructs a RawUpdateRecordsRequest object with default parameters.