|
Kinetica C# API
Version 7.2.3.1
|
A generic record that can hold values for any Kinetica type. More...
Inheritance diagram for GenericRecord:
Collaboration diagram for GenericRecord:Public Member Functions | |
| GenericRecord (Type type) | |
| Creates a new GenericRecord for the given type. More... | |
| bool | Put (int index, int value) |
| Sets an integer value by column index. More... | |
| bool | Put (int index, long value) |
| Sets a long value by column index. More... | |
| bool | Put (int index, float value) |
| Sets a float value by column index. More... | |
| bool | Put (int index, double value) |
| Sets a double value by column index. More... | |
| bool | Put (int index, string? value) |
| Sets a string value by column index. More... | |
| bool | Put (int index, byte[]? value) |
| Sets a bytes value by column index. More... | |
| bool | Put (int index, bool value) |
| Sets a boolean value by column index. More... | |
| bool | PutNull (int index) |
| Sets a null value by column index. More... | |
| bool | Put (int index, RecordValue value) |
| Sets a RecordValue by column index. More... | |
| bool | Put (string name, int value) |
| Sets an integer value by column name. More... | |
| bool | Put (string name, long value) |
| Sets a long value by column name. More... | |
| bool | Put (string name, float value) |
| Sets a float value by column name. More... | |
| bool | Put (string name, double value) |
| Sets a double value by column name. More... | |
| bool | Put (string name, string? value) |
| Sets a string value by column name. More... | |
| bool | Put (string name, byte[]? value) |
| Sets a bytes value by column name. More... | |
| bool | Put (string name, bool value) |
| Sets a boolean value by column name. More... | |
| bool | PutNull (string name) |
| Sets a null value by column name. More... | |
| bool | Put (string name, RecordValue value) |
| Sets a RecordValue by column name. More... | |
| RecordValue? | Get (int index) |
| Gets the raw RecordValue at the specified index. More... | |
| int? | GetInt (int index) |
| Gets an integer value by column index. More... | |
| long? | GetLong (int index) |
| Gets a long value by column index. More... | |
| float? | GetFloat (int index) |
| Gets a float value by column index. More... | |
| double? | GetDouble (int index) |
| Gets a double value by column index. More... | |
| string? | GetString (int index) |
| Gets a string value by column index. More... | |
| byte? [] | GetBytes (int index) |
| Gets a bytes value by column index. More... | |
| bool? | GetBool (int index) |
| Gets a boolean value by column index. More... | |
| RecordValue? | Get (string name) |
| Gets the raw RecordValue by column name. More... | |
| int? | GetInt (string name) |
| Gets an integer value by column name. More... | |
| long? | GetLong (string name) |
| Gets a long value by column name. More... | |
| float? | GetFloat (string name) |
| Gets a float value by column name. More... | |
| double? | GetDouble (string name) |
| Gets a double value by column name. More... | |
| string? | GetString (string name) |
| Gets a string value by column name. More... | |
| byte? [] | GetBytes (string name) |
| Gets a bytes value by column name. More... | |
| bool? | GetBool (string name) |
| Gets a boolean value by column name. More... | |
| string | GetAvroSchema () |
| Returns the Avro schema as a JSON string for this record type. More... | |
| ShardKeyValues | GetShardKeyValues () |
| Returns shard key column names and their typed values. More... | |
| GenericRecord | Clone () |
| Creates a copy of this record. More... | |
| void | Clear () |
| Resets all values to null. More... | |
| object? [] | ToObjectArray () |
| Gets all values as objects (for Avro serialization). More... | |
| override string | ToString () |
Static Public Member Functions | |
| static IReadOnlyDictionary< string, IList< string > > | GetTypeProperties (Type type) |
| Returns type properties for this record type. More... | |
Public Attributes | |
| Type | RecordType => _type |
| Gets the Type definition for this record. More... | |
A generic record that can hold values for any Kinetica type.
Equivalent to Rust's GenericRecord struct.
This class stores values in an array indexed by column position, and uses the associated Type for schema information. It implements both IKineticaRecord and IShardKeyExtractor for use with BulkInserter.
Definition at line 35 of file GenericRecord.cs.
|
inline |
Creates a new GenericRecord for the given type.
All values are initialized to Null.
| type | The Type definition for this record. |
Definition at line 45 of file GenericRecord.cs.
|
inline |
Resets all values to null.
Definition at line 431 of file GenericRecord.cs.
|
inline |
Creates a copy of this record.
Definition at line 421 of file GenericRecord.cs.
|
inline |
Gets the raw RecordValue at the specified index.
Definition at line 204 of file GenericRecord.cs.
|
inline |
Gets the raw RecordValue by column name.
Definition at line 264 of file GenericRecord.cs.
| string GenericRecord.GetAvroSchema | ( | ) |
Returns the Avro schema as a JSON string for this record type.
Implements IKineticaRecord.
|
inline |
Gets a boolean value by column index.
Definition at line 253 of file GenericRecord.cs.
|
inline |
Gets a boolean value by column name.
Definition at line 313 of file GenericRecord.cs.
|
inline |
Gets a bytes value by column index.
Definition at line 246 of file GenericRecord.cs.
|
inline |
Gets a bytes value by column name.
Definition at line 306 of file GenericRecord.cs.
|
inline |
Gets a double value by column index.
Definition at line 232 of file GenericRecord.cs.
|
inline |
Gets a double value by column name.
Definition at line 292 of file GenericRecord.cs.
|
inline |
Gets a float value by column index.
Definition at line 225 of file GenericRecord.cs.
|
inline |
Gets a float value by column name.
Definition at line 285 of file GenericRecord.cs.
|
inline |
Gets an integer value by column index.
Definition at line 211 of file GenericRecord.cs.
|
inline |
Gets an integer value by column name.
Definition at line 271 of file GenericRecord.cs.
|
inline |
Gets a long value by column index.
Definition at line 218 of file GenericRecord.cs.
|
inline |
Gets a long value by column name.
Definition at line 278 of file GenericRecord.cs.
|
inline |
Returns shard key column names and their typed values.
Implements IShardKeyExtractor.
Definition at line 349 of file GenericRecord.cs.
|
inline |
Gets a string value by column index.
Definition at line 239 of file GenericRecord.cs.
|
inline |
Gets a string value by column name.
Definition at line 299 of file GenericRecord.cs.
|
inlinestatic |
Returns type properties for this record type.
Definition at line 331 of file GenericRecord.cs.
|
inline |
Sets an integer value by column index.
Definition at line 61 of file GenericRecord.cs.
|
inline |
Sets a long value by column index.
Definition at line 69 of file GenericRecord.cs.
|
inline |
Sets a float value by column index.
Definition at line 77 of file GenericRecord.cs.
|
inline |
Sets a double value by column index.
Definition at line 85 of file GenericRecord.cs.
|
inline |
Sets a string value by column index.
Definition at line 93 of file GenericRecord.cs.
|
inline |
Sets a bytes value by column index.
Definition at line 101 of file GenericRecord.cs.
|
inline |
Sets a boolean value by column index.
Definition at line 109 of file GenericRecord.cs.
|
inline |
Sets a RecordValue by column index.
Definition at line 125 of file GenericRecord.cs.
|
inline |
Sets an integer value by column name.
Definition at line 137 of file GenericRecord.cs.
|
inline |
Sets a long value by column name.
Definition at line 144 of file GenericRecord.cs.
|
inline |
Sets a float value by column name.
Definition at line 151 of file GenericRecord.cs.
|
inline |
Sets a double value by column name.
Definition at line 158 of file GenericRecord.cs.
|
inline |
Sets a string value by column name.
Definition at line 165 of file GenericRecord.cs.
|
inline |
Sets a bytes value by column name.
Definition at line 172 of file GenericRecord.cs.
|
inline |
Sets a boolean value by column name.
Definition at line 179 of file GenericRecord.cs.
|
inline |
Sets a RecordValue by column name.
Definition at line 193 of file GenericRecord.cs.
|
inline |
Sets a null value by column index.
Definition at line 117 of file GenericRecord.cs.
|
inline |
Sets a null value by column name.
Definition at line 186 of file GenericRecord.cs.
|
inline |
Gets all values as objects (for Avro serialization).
Definition at line 445 of file GenericRecord.cs.
|
inline |
Definition at line 468 of file GenericRecord.cs.
| Type GenericRecord.RecordType => _type |
Gets the Type definition for this record.
Definition at line 56 of file GenericRecord.cs.