7 using System.Collections.Generic;
49 public const string BINARY =
"binary";
50 public const string JSON =
"json";
108 public const string TRUE =
"true";
109 public const string FALSE =
"false";
130 public IList<string>
expressions {
get; set; } =
new List<string>();
138 public IList<IDictionary<string, string>>
new_values_maps {
get; set; } =
new List<IDictionary<string, string>>();
193 public IDictionary<string, string>
options {
get; set; } =
new Dictionary<string, string>();
257 IDictionary<string, string>
options = null)
259 this.table_name = table_name ??
"";
260 this.expressions = expressions ??
new List<string>();
261 this.new_values_maps =
new_values_maps ??
new List<IDictionary<string, string>>();
263 this.records_to_insert_str =
new List<string>();
265 this.options =
options ??
new Dictionary<string, string>();
337 IDictionary<string, string>
options = null)
339 this.table_name = table_name ??
"";
340 this.expressions = expressions ??
new List<string>();
341 this.new_values_maps =
new_values_maps ??
new List<IDictionary<string, string>>();
345 this.options =
options ??
new Dictionary<string, string>();
417 public struct Options
423 public const string GLOBAL_EXPRESSION =
"global_expression";
434 public const string BYPASS_SAFETY_CHECKS =
"bypass_safety_checks";
435 public const string TRUE =
"true";
436 public const string FALSE =
"false";
442 public const string UPDATE_ON_EXISTING_PK =
"update_on_existing_pk";
447 public const string RECORD_ID =
"record_id";
453 public string table_name {
get; set; }
457 public IList<string> expressions {
get; set; } =
new List<string>();
465 public IList<IDictionary<string, string>> new_values_maps {
get; set; } =
new List<IDictionary<string, string>>();
472 public IList<T> data {
get; set; } =
new List<T>();
508 public IDictionary<string, string> options {
get; set; } =
new Dictionary<string, string>();
569 IList<string> expressions,
570 IList<IDictionary<string, string>> new_values_maps,
571 IList<T> data = null,
572 IDictionary<string, string> options = null)
574 this.table_name = table_name ??
"";
575 this.expressions = expressions ??
new List<string>();
576 this.new_values_maps = new_values_maps ??
new List<IDictionary<string, string>>();
577 this.data = data ??
new List<T>();
578 this.options = options ??
new Dictionary<string, string>();
IList< string > expressions
A list of the actual predicates, one for each update; format should follow the guidelines /filter...
const string GLOBAL_EXPRESSION
An optional global expression to reduce the search space of the predicates listed in <member name="ex...
string record_encoding
Identifies which of and should be used.
const string RECORD_ID
ID of a single record to be updated (returned in the call to /insert/records or /get/records/fromcoll...
A set of parameters for /update/records.
A set of results returned by /update/records.
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
Can be used to customize behavior when the updated primary key value already exists, as described in /insert/records.
long count_updated
Total number of records updated.
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.
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.