Immutable metadata about a column in a Kinetica type.
More...
Immutable metadata about a column in a Kinetica type.
Equivalent to Rust's Column struct.
Definition at line 11 of file Column.cs.
◆ Column() [1/2]
| Column.Column |
( |
string |
name, |
|
|
ColumnType |
columnType |
|
) |
| |
|
inline |
Creates a new column with the given name and type.
- Parameters
-
| name | The column name. |
| columnType | The column type. |
Definition at line 25 of file Column.cs.
◆ Column() [2/2]
| Column.Column |
( |
string |
name, |
|
|
ColumnType |
columnType, |
|
|
IEnumerable< string > |
properties |
|
) |
| |
|
inline |
Creates a new column with the given name, type, and properties.
- Parameters
-
| name | The column name. |
| columnType | The column type. |
| properties | The column properties (e.g., "primary_key", "shard_key", "nullable"). |
Definition at line 36 of file Column.cs.
◆ AsNullable()
Creates a copy of this column marked as nullable.
Definition at line 91 of file Column.cs.
◆ AsPrimaryKey()
| Column Column.AsPrimaryKey |
( |
| ) |
|
|
inline |
Creates a copy of this column marked as primary key.
Definition at line 100 of file Column.cs.
◆ AsShardKey()
Creates a copy of this column marked as shard key.
Definition at line 109 of file Column.cs.
◆ Equals()
| override bool Column.Equals |
( |
object? |
obj | ) |
|
|
inline |
◆ GetHashCode()
| override int Column.GetHashCode |
( |
| ) |
|
|
inline |
◆ ToString()
| override string Column.ToString |
( |
| ) |
|
|
inline |
◆ WithAddedProperties()
| Column Column.WithAddedProperties |
( |
params string [] |
additionalProperties | ) |
|
|
inline |
Creates a copy of this column with the specified properties added.
Definition at line 82 of file Column.cs.
◆ WithProperties()
| static Column Column.WithProperties |
( |
string |
name, |
|
|
ColumnType |
columnType, |
|
|
IEnumerable< string > |
properties |
|
) |
| |
|
static |
Creates a column with properties from a list.
Equivalent to Rust's Column::with_properties().
◆ AvroTypeName
| string Column.AvroTypeName => _columnType.GetAvroTypeName() |
Returns the Avro type name for this column.
Definition at line 77 of file Column.cs.
◆ BaseType
Gets the base type for this column.
Definition at line 60 of file Column.cs.
◆ ColumnType
| ColumnType Column.ColumnType => _columnType |
Gets the column type.
Definition at line 57 of file Column.cs.
◆ IsNullable
| bool Column.IsNullable => _isNullable |
Returns true if this column is nullable.
Definition at line 66 of file Column.cs.
◆ IsPrimaryKey
| bool Column.IsPrimaryKey => _isPrimaryKey |
Returns true if this column is a primary key.
Definition at line 69 of file Column.cs.
◆ IsShardKey
| bool Column.IsShardKey => _isShardKey |
Returns true if this column is a shard key.
Definition at line 72 of file Column.cs.
◆ Name
| string Column.Name => _name |
Gets the column name.
Definition at line 54 of file Column.cs.
◆ Properties
| IReadOnlyList<string> Column.Properties => _properties |
Gets the column properties.
Definition at line 63 of file Column.cs.
The documentation for this class was generated from the following file: