Kinetica C# API  Version 6.1.0.0
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 
132  public struct Options
133  {
134 
138  public const string GLOBAL_EXPRESSION = "global_expression";
139 
160  public const string BYPASS_SAFETY_CHECKS = "bypass_safety_checks";
161  public const string TRUE = "true";
162  public const string FALSE = "false";
163 
181  public const string UPDATE_ON_EXISTING_PK = "update_on_existing_pk";
182 
189  public const string RECORD_ID = "record_id";
190  } // end struct Options
191 
192 
195  public string table_name { get; set; }
196 
199  public IList<string> expressions { get; set; } = new List<string>();
200 
207  public IList<IDictionary<string, string>> new_values_maps { get; set; } = new List<IDictionary<string, string>>();
208 
214  public IList<byte[]> records_to_insert { get; set; } = new List<byte[]>();
215 
219  public IList<string> records_to_insert_str { get; set; } = new List<string>();
220 
239  public string record_encoding { get; set; } = RecordEncoding.BINARY;
240 
303  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
304 
305 
309 
392  IList<string> expressions,
393  IList<IDictionary<string, string>> new_values_maps,
394  IList<byte[]> records_to_insert = null,
395  IDictionary<string, string> options = null)
396  {
397  this.table_name = table_name ?? "";
398  this.expressions = expressions ?? new List<string>();
399  this.new_values_maps = new_values_maps ?? new List<IDictionary<string, string>>();
400  this.records_to_insert = records_to_insert ?? new List<byte[]>();
401  this.records_to_insert_str = new List<string>();
403  this.options = options ?? new Dictionary<string, string>();
404  } // end constructor
405 
406 
511  IList<string> expressions,
512  IList<IDictionary<string, string>> new_values_maps,
513  IList<byte[]> records_to_insert = null,
514  IList<string> records_to_insert_str = null,
515  string record_encoding = null,
516  IDictionary<string, string> options = null)
517  {
518  this.table_name = table_name ?? "";
519  this.expressions = expressions ?? new List<string>();
520  this.new_values_maps = new_values_maps ?? new List<IDictionary<string, string>>();
521  this.records_to_insert = records_to_insert ?? new List<byte[]>();
522  this.records_to_insert_str = records_to_insert_str ?? new List<string>();
523  this.record_encoding = record_encoding ?? RecordEncoding.BINARY;
524  this.options = options ?? new Dictionary<string, string>();
525  } // end full constructor
526 
527  } // end class RawUpdateRecordsRequest
528 
529 
530 
560  {
561 
626  public struct Options
627  {
628 
632  public const string GLOBAL_EXPRESSION = "global_expression";
633 
654  public const string BYPASS_SAFETY_CHECKS = "bypass_safety_checks";
655  public const string TRUE = "true";
656  public const string FALSE = "false";
657 
675  public const string UPDATE_ON_EXISTING_PK = "update_on_existing_pk";
676 
683  public const string RECORD_ID = "record_id";
684  } // end struct Options
685 
686 
689  public string table_name { get; set; }
690 
693  public IList<string> expressions { get; set; } = new List<string>();
694 
701  public IList<IDictionary<string, string>> new_values_maps { get; set; } = new List<IDictionary<string, string>>();
702 
708  public IList<T> data { get; set; } = new List<T>();
709 
772  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
773 
774 
777  public UpdateRecordsRequest() { }
778 
861  IList<string> expressions,
862  IList<IDictionary<string, string>> new_values_maps,
863  IList<T> data = null,
864  IDictionary<string, string> options = null)
865  {
866  this.table_name = table_name ?? "";
867  this.expressions = expressions ?? new List<string>();
868  this.new_values_maps = new_values_maps ?? new List<IDictionary<string, string>>();
869  this.data = data ?? new List<T>();
870  this.options = options ?? new Dictionary<string, string>();
871  } // end constructor
872 
873  } // end class UpdateRecordsRequest
874 
875 
876 
881  {
882 
884  public long count_updated { get; set; }
885 
888  public IList<long> counts_updated { get; set; } = new List<long>();
889 
892  public long count_inserted { get; set; }
893 
897  public IList<long> counts_inserted { get; set; } = new List<long>();
898 
899  } // end class UpdateRecordsResponse
900 
901 
902 
903 
904 } // 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.