Immutable collection of metadata about a Kinetica type. More…
Public Member Functions | |
| Type (string label, IEnumerable< Column > columns) | |
| Creates a Type from column definitions. | |
| Column? | GetColumn (int index) |
| Gets a column by index. | |
| Column? | GetColumnByName (string name) |
| Gets a column by name. | |
| int? | GetColumnIndex (string name) |
| Gets a column index by name. | |
| int | GetColumnIndexOrThrow (string name) |
| Gets a column index by name, throwing if not found. | |
| GenericRecord | NewInstance () |
| Creates a new GenericRecord instance of this type. | |
| override string | ToString () |
| Type (string label, IEnumerable< Column > columns) | |
| Creates a Type from column definitions. | |
| Column? | GetColumn (int index) |
| Gets a column by index. | |
| Column? | GetColumnByName (string name) |
| Gets a column by name. | |
| int? | GetColumnIndex (string name) |
| Gets a column index by name. | |
| int | GetColumnIndexOrThrow (string name) |
| Gets a column index by name, throwing if not found. | |
| GenericRecord | NewInstance () |
| Creates a new GenericRecord instance of this type. | |
| override string | ToString () |
Static Public Member Functions | |
| static TypeBuilder | Builder (string label) |
| Creates a TypeBuilder for fluent construction. | |
| static async Task< Type > | FromTableAsync (kinetica.Kinetica kinetica, string tableName) |
| Fetch type from an existing Kinetica table. | |
| static Type | FromTable (kinetica.Kinetica kinetica, string tableName) |
| Fetch type from an existing Kinetica table (synchronous version). | |
| static Type | FromShowTableResponse (string tableName, kinetica.ShowTableResponse response) |
| Build Type from ShowTableResponse. | |
| static TypeBuilder | Builder (string label) |
| Creates a TypeBuilder for fluent construction. | |
| static async Task< Type > | FromTableAsync (kinetica.Kinetica kinetica, string tableName) |
| Fetch type from an existing Kinetica table. | |
| static Type | FromTable (kinetica.Kinetica kinetica, string tableName) |
| Fetch type from an existing Kinetica table (synchronous version). | |
| static Type | FromShowTableResponse (string tableName, kinetica.ShowTableResponse response) |
| Build Type from ShowTableResponse. | |
Properties | |
| string | Label [get] |
| Gets the type label/name. | |
| string | SchemaString [get] |
| Gets the Avro schema string. | |
| string? | TypeId [get] |
| Gets the type ID (if fetched from Kinetica). | |
| int | ColumnCount [get] |
| Gets the number of columns. | |
| IReadOnlyList< int > | ShardKeyIndices [get] |
| Gets the shard key column indices. | |
| IReadOnlyList< int > | PrimaryKeyIndices [get] |
| Gets the primary key column indices. | |
| bool | HasShardKey [get] |
| Returns true if this type has a shard key. | |
| bool | HasPrimaryKey [get] |
| Returns true if this type has a primary key. | |
| IReadOnlyList< Column > | Columns [get] |
| Gets all columns. | |
Detailed Description
Immutable collection of metadata about a Kinetica type.
Equivalent to Rust’s Type struct.
This class contains all the information needed to create and encode records of this type, including schema information, column metadata, and key indices.
Definition at line 32 of file Type.cs.
Constructor & Destructor Documentation
◆ Type() [1/2]
| inline |
Creates a Type from column definitions.
| label | The type label/name. |
| columns | The column definitions. |
| ArgumentNullException | If label or columns is null. |
| ArgumentException | If columns is empty or contains duplicates. |
Definition at line 49 of file Type.cs.
◆ Type() [2/2]
| inline |
Creates a Type from column definitions.
| label | The type label/name. |
| columns | The column definitions. |
| ArgumentNullException | If label or columns is null. |
| ArgumentException | If columns is empty or contains duplicates. |
Definition at line 49 of file Type.cs.
Member Function Documentation
◆ Builder() [1/2]
| static |
Creates a TypeBuilder for fluent construction.
Equivalent to Rust’s Type::builder().
| label | The type label/name. |
◆ Builder() [2/2]
| static |
Creates a TypeBuilder for fluent construction.
Equivalent to Rust’s Type::builder().
| label | The type label/name. |
◆ FromShowTableResponse() [1/2]
| inlinestatic |
Build Type from ShowTableResponse.
Equivalent to Rust’s Type::from_table_response().
Definition at line 164 of file Type.cs.
◆ FromShowTableResponse() [2/2]
| inlinestatic |
Build Type from ShowTableResponse.
Equivalent to Rust’s Type::from_table_response().
Definition at line 164 of file Type.cs.
◆ FromTable() [1/2]
| inlinestatic |
◆ FromTable() [2/2]
| inlinestatic |
◆ FromTableAsync() [1/2]
| inlinestatic |
◆ FromTableAsync() [2/2]
| inlinestatic |
◆ GetColumn() [1/2]
| inline |
Gets a column by index.
| index | The column index. |
Definition at line 308 of file Type.cs.
◆ GetColumn() [2/2]
| inline |
Gets a column by index.
| index | The column index. |
Definition at line 308 of file Type.cs.
◆ GetColumnByName() [1/2]
| inline |
Gets a column by name.
| name | The column name (case-insensitive). |
Definition at line 320 of file Type.cs.
◆ GetColumnByName() [2/2]
| inline |
Gets a column by name.
| name | The column name (case-insensitive). |
Definition at line 320 of file Type.cs.
◆ GetColumnIndex() [1/2]
| inline |
Gets a column index by name.
| name | The column name (case-insensitive). |
Definition at line 332 of file Type.cs.
◆ GetColumnIndex() [2/2]
| inline |
Gets a column index by name.
| name | The column name (case-insensitive). |
Definition at line 332 of file Type.cs.
◆ GetColumnIndexOrThrow() [1/2]
| inline |
Gets a column index by name, throwing if not found.
| name | The column name (case-insensitive). |
| KeyNotFoundException | If the column is not found. |
Definition at line 345 of file Type.cs.
◆ GetColumnIndexOrThrow() [2/2]
| inline |
Gets a column index by name, throwing if not found.
| name | The column name (case-insensitive). |
| KeyNotFoundException | If the column is not found. |
Definition at line 345 of file Type.cs.
◆ NewInstance() [1/2]
| GenericRecord kinetica.Records.Type.NewInstance | ( | ) |
Creates a new GenericRecord instance of this type.
Equivalent to Rust’s Type::new_instance().
◆ NewInstance() [2/2]
| GenericRecord kinetica.Records.Type.NewInstance | ( | ) |
Creates a new GenericRecord instance of this type.
Equivalent to Rust’s Type::new_instance().
◆ ToString() [1/2]
| inline |
Definition at line 430 of file Type.cs.
◆ ToString() [2/2]
| inline |
Definition at line 430 of file Type.cs.
Property Documentation
◆ ColumnCount
| get |
Gets the number of columns.
Definition at line 282 of file Type.cs.
◆ Columns
| get |
Gets all columns.
Definition at line 297 of file Type.cs.
◆ HasPrimaryKey
| get |
Returns true if this type has a primary key.
Definition at line 294 of file Type.cs.
◆ HasShardKey
| get |
Returns true if this type has a shard key.
Definition at line 291 of file Type.cs.
◆ Label
| get |
Gets the type label/name.
Definition at line 273 of file Type.cs.
◆ PrimaryKeyIndices
| get |
Gets the primary key column indices.
Definition at line 288 of file Type.cs.
◆ SchemaString
| get |
Gets the Avro schema string.
Definition at line 276 of file Type.cs.
◆ ShardKeyIndices
| get |
Gets the shard key column indices.
Definition at line 285 of file Type.cs.
◆ TypeId
| get |
Gets the type ID (if fetched from Kinetica).
Definition at line 279 of file Type.cs.
The documentation for this class was generated from the following files:
- _build/public-os_ubuntu24.04-arch_amd64-cc_gcc_13.3.0/install/Kinetica/Records/Type.cs
- Kinetica/Records/Type.cs