|
Kinetica C# API
Version 7.2.3.1
|
Collection of shard key column names and values. More...
Inherits IReadOnlyList<(string Name, ShardKeyValue Value)>.
Collaboration diagram for ShardKeyValues:Public Member Functions | |
| ShardKeyValues (params(string Name, ShardKeyValue Value)[] values) | |
| Creates a ShardKeyValues collection from the specified values. More... | |
| IEnumerator<(string Name, ShardKeyValue Value)> | GetEnumerator () |
| Gets an enumerator for the shard key values. More... | |
| IEnumerator IEnumerable. | GetEnumerator () |
Static Public Member Functions | |
| static ShardKeyValues | Single (string name, ShardKeyValue value) |
| Creates a ShardKeyValues collection with a single value. More... | |
| static ShardKeyValues | Two (string name1, ShardKeyValue value1, string name2, ShardKeyValue value2) |
| Creates a ShardKeyValues collection with two values. More... | |
| static ShardKeyValues | Three (string name1, ShardKeyValue value1, string name2, ShardKeyValue value2, string name3, ShardKeyValue value3) |
| Creates a ShardKeyValues collection with three values. More... | |
| static ShardKeyValues | Four (string name1, ShardKeyValue value1, string name2, ShardKeyValue value2, string name3, ShardKeyValue value3, string name4, ShardKeyValue value4) |
| Creates a ShardKeyValues collection with four values. More... | |
Public Attributes | |
| int | Count => _values?.Length ?? 0 |
| Gets the number of shard key values. More... | |
| string | Name |
| Gets the shard key value at the specified index. More... | |
Static Public Attributes | |
| static ShardKeyValues | Empty => new(Array.Empty<(string, ShardKeyValue)>()) |
| Creates an empty ShardKeyValues collection. More... | |
Properties | |
| string ShardKeyValue Value | this[int index] [get] |
Collection of shard key column names and values.
Equivalent to Rust's ShardKeyValues (SmallVec<[(&'static str, ShardKeyValue); 4]>).
This struct is optimized for small collections (up to 4 shard key columns) which is the common case.
Definition at line 317 of file ShardKeyValue.cs.
|
inline |
Creates a ShardKeyValues collection from the specified values.
Definition at line 325 of file ShardKeyValue.cs.
|
static |
Creates a ShardKeyValues collection with four values.
|
inline |
Gets an enumerator for the shard key values.
Definition at line 368 of file ShardKeyValue.cs.
| IEnumerator IEnumerable. ShardKeyValues.GetEnumerator | ( | ) |
|
static |
Creates a ShardKeyValues collection with a single value.
|
static |
Creates a ShardKeyValues collection with three values.
|
static |
Creates a ShardKeyValues collection with two values.
| int ShardKeyValues.Count => _values?.Length ?? 0 |
Gets the number of shard key values.
Definition at line 354 of file ShardKeyValue.cs.
|
static |
Creates an empty ShardKeyValues collection.
Definition at line 322 of file ShardKeyValue.cs.
| string ShardKeyValues.Name |
Gets the shard key value at the specified index.
Definition at line 357 of file ShardKeyValue.cs.
|
get |
Definition at line 358 of file ShardKeyValue.cs.