7 using System.Collections.Generic;
69 public const string BINARY =
"binary";
70 public const string JSON =
"json";
243 public const string TRUE =
"true";
244 public const string FALSE =
"false";
349 public IList<string>
expressions {
get; set; } =
new List<string>();
357 public IList<IDictionary<string, string>>
new_values_maps {
get; set; } =
new List<IDictionary<string, string>>();
531 public IDictionary<string, string>
options {
get; set; } =
new Dictionary<string, string>();
700 IDictionary<string, string>
options = null)
702 this.table_name = table_name ??
"";
703 this.expressions = expressions ??
new List<string>();
704 this.new_values_maps =
new_values_maps ??
new List<IDictionary<string, string>>();
706 this.records_to_insert_str =
new List<string>();
708 this.options =
options ??
new Dictionary<string, string>();
898 IDictionary<string, string>
options = null)
900 this.table_name = table_name ??
"";
901 this.expressions = expressions ??
new List<string>();
902 this.new_values_maps =
new_values_maps ??
new List<IDictionary<string, string>>();
906 this.options =
options ??
new Dictionary<string, string>();
1090 public struct Options
1096 public const string GLOBAL_EXPRESSION =
"global_expression";
1118 public const string BYPASS_SAFETY_CHECKS =
"bypass_safety_checks";
1119 public const string TRUE =
"true";
1120 public const string FALSE =
"false";
1152 public const string UPDATE_ON_EXISTING_PK =
"update_on_existing_pk";
1169 public const string UPDATE_PARTITION =
"update_partition";
1186 public const string TRUNCATE_STRINGS =
"truncate_strings";
1207 public const string USE_EXPRESSIONS_IN_NEW_VALUES_MAPS =
"use_expressions_in_new_values_maps";
1215 public const string RECORD_ID =
"record_id";
1221 public string table_name {
get; set; }
1225 public IList<string> expressions {
get; set; } =
new List<string>();
1233 public IList<IDictionary<string, string>> new_values_maps {
get; set; } =
new List<IDictionary<string, string>>();
1241 public IList<T> data {
get; set; } =
new List<T>();
1381 public IDictionary<string, string> options {
get; set; } =
new Dictionary<string, string>();
1547 IList<string> expressions,
1548 IList<IDictionary<string, string>> new_values_maps,
1549 IList<T> data = null,
1550 IDictionary<string, string> options = null)
1552 this.table_name = table_name ??
"";
1553 this.expressions = expressions ??
new List<string>();
1554 this.new_values_maps = new_values_maps ??
new List<IDictionary<string, string>>();
1555 this.data = data ??
new List<T>();
1556 this.options = options ??
new Dictionary<string, string>();
1586 public IDictionary<string, string>
info {
get; set; } =
new Dictionary<string, string>();
IList< string > expressions
A list of the actual predicates, one for each update; format should follow the guidelines /filter...
IDictionary< string, string > info
Additional information.
const string GLOBAL_EXPRESSION
An optional global expression to reduce the search space of the predicates listed in expressions...
string record_encoding
Identifies which of and should be used.
const string TRUNCATE_STRINGS
If set to true, any strings which are too long for their charN string fields will be truncated to fit...
const string RECORD_ID
ID of a single record to be updated (returned in the call to Kinetica.insertRecords{T}(string,IList{T},IDictionary{string, string}) or Kinetica.getRecordsFromCollection{T}(string,long,long,IDictionary{string, string})).
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...
UpdateRecordsRequest()
Constructs an UpdateRecordsRequest object with default parameters.
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.
const string UPDATE_ON_EXISTING_PK
Specifies the record collision policy for tables with a primary key when updating columns of the prim...
long count_updated
Total number of records updated.
const string USE_EXPRESSIONS_IN_NEW_VALUES_MAPS
When set to true, all new values in new_values_maps are considered as expression values.
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.
IList< long > counts_inserted
Total number of records inserted per predicate in (will be either 0 or 1 for each expression)...
IList< long > counts_updated
Total number of records updated per predicate in .
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.
const string UPDATE_PARTITION
Force qualifying records to be deleted and reinserted so their partition membership will be reevaluat...
long count_inserted
Total number of records inserted (due to expressions not matching any existing records).
KineticaData - class to help with Avro Encoding for Kinetica
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 ...
const string BYPASS_SAFETY_CHECKS
When set to true, all predicates are available for primary key updates.
RawUpdateRecordsRequest()
Constructs a RawUpdateRecordsRequest object with default parameters.