|
Kinetica C# API
Version 7.2.3.1
|
Builds or creates RecordKey objects based on a given record. More...
Public Member Functions | |
| RecordKeyBuilder (Type type) | |
| Creates a RecordKeyBuilder from a Type definition. More... | |
| RecordKeyBuilder (kinetica.KineticaType ktype, bool isPrimaryKey=false) | |
| Creates a RecordKeyBuilder from a KineticaType (for backwards compatibility). More... | |
| RecordKey? | Build (ShardKeyValues values) |
| Builds a RecordKey from the given shard key values. More... | |
| RecordKeyBuilder (bool is_primary_key, KineticaType ktype) | |
| RecordKey | build (T record) |
| Build a RecordKey object based on a record. More... | |
| string | buildExpression (T record) |
| Build an expression to be passed to getRecords in the option. More... | |
| bool | hasKey () |
| Returns whether this builder builds any routing keys. More... | |
| bool | hasSameKey (RecordKeyBuilder< T > other) |
| Returns if other is equivalent to this builder. More... | |
Public Attributes | |
| bool | HasKey => _shardKeyIndices.Count > 0 |
| Returns true if this builder has shard key columns. More... | |
| int | KeyColumnCount => _shardKeyIndices.Count |
| Gets the number of shard key columns. More... | |
Builds or creates RecordKey objects based on a given record.
| T | The type of record to build keys off of. |
Definition at line 11 of file RecordKeyBuilder.cs.
|
inline |
Creates a RecordKeyBuilder from a Type definition.
Definition at line 28 of file RecordKeyBuilder.cs.
|
inline |
Creates a RecordKeyBuilder from a KineticaType (for backwards compatibility).
Definition at line 64 of file RecordKeyBuilder.cs.
|
inline |
Definition at line 65 of file RecordKeyBuilder.cs.
|
inline |
Builds a RecordKey from the given shard key values.
Definition at line 118 of file RecordKeyBuilder.cs.
|
inline |
Build a RecordKey object based on a record.
| record | The object based on which the key is to be built. |
Definition at line 366 of file RecordKeyBuilder.cs.
|
inline |
Build an expression to be passed to getRecords in the option.
The expression is based on the record provided, but only values of shard columns will be used, the rest will be ignored.
| record | The object based on which the expression is to be built. |
Definition at line 508 of file RecordKeyBuilder.cs.
|
inline |
Returns whether this builder builds any routing keys.
That is, if there are any routing columns in the relevant record type.
Definition at line 596 of file RecordKeyBuilder.cs.
|
inline |
Returns if other is equivalent to this builder.
| other | The other key builder. |
Definition at line 608 of file RecordKeyBuilder.cs.
| bool RecordKeyBuilder< T >.HasKey => _shardKeyIndices.Count > 0 |
Returns true if this builder has shard key columns.
Definition at line 108 of file RecordKeyBuilder.cs.
| int RecordKeyBuilder< T >.KeyColumnCount => _shardKeyIndices.Count |
Gets the number of shard key columns.
Definition at line 113 of file RecordKeyBuilder.cs.