|
Kinetica C# API
Version 7.2.3.1
|
Public Types | |
| enum | ColumnType { ColumnType.BYTES = (int)Avro.Schema.Type.Bytes, ColumnType.DOUBLE = (int)Avro.Schema.Type.Double, ColumnType.FLOAT = (int)Avro.Schema.Type.Float, ColumnType.INT = (int)Avro.Schema.Type.Int, ColumnType.LONG = (int)Avro.Schema.Type.Long, ColumnType.STRING = (int)Avro.Schema.Type.String, ColumnType.BOOLEAN = (int)Avro.Schema.Type.Boolean, ColumnType.DEFAULT = (int)Avro.Schema.Type.Error } |
Public Member Functions | |
| Column (string name, ColumnType type, IList< string >? properties=null) | |
| Creates a Column object from the given name, type, and properties. More... | |
| string | getName () |
| Returns the name of the column. More... | |
| ColumnType | getType () |
| Returns the enumeration for the column type. More... | |
| bool | isNullable () |
| Returns if the column is nullable. More... | |
| IList< string > | getProperties () |
| Returns the properties for the column. More... | |
| bool | isDecimal () |
| Returns whether this column is a decimal type. More... | |
| int | getDecimalPrecision () |
| Returns the precision for decimal columns. More... | |
| int | getDecimalScale () |
| Returns the scale for decimal columns. More... | |
| int | getDecimalByteSize () |
| Returns the byte size needed to store decimal values for this column. More... | |
| string | getTypeString () |
| Returns the string format of the data type. More... | |
| override string | ToString () |
Public Attributes | |
| const int | DEFAULT_DECIMAL_PRECISION = 18 |
| Default precision for decimal columns (matches Java API). More... | |
| const int | DEFAULT_DECIMAL_SCALE = 4 |
| Default scale for decimal columns (matches Java API). More... | |
| const int | DECIMAL8_MAX_PRECISION = 18 |
| Maximum precision for 8-byte decimals. More... | |
Definition at line 12 of file KineticaType.cs.
|
strong |
| Enumerator | |
|---|---|
| BYTES | |
| DOUBLE | |
| FLOAT | |
| INT | |
| LONG | |
| STRING | |
| BOOLEAN | |
| DEFAULT | |
Definition at line 14 of file KineticaType.cs.
|
inline |
Creates a Column object from the given name, type, and properties.
| name | |
| type | |
| properties |
Definition at line 62 of file KineticaType.cs.
|
inline |
Returns the byte size needed to store decimal values for this column.
Returns 8 for precision <= 18, or 12 for precision > 18.
Definition at line 121 of file KineticaType.cs.
|
inline |
Returns the precision for decimal columns.
For non-decimal columns, returns DEFAULT_DECIMAL_PRECISION.
Definition at line 107 of file KineticaType.cs.
|
inline |
Returns the scale for decimal columns.
For non-decimal columns, returns DEFAULT_DECIMAL_SCALE.
Definition at line 114 of file KineticaType.cs.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns whether this column is a decimal type.
Definition at line 100 of file KineticaType.cs.
|
inline |
|
inline |
Definition at line 217 of file KineticaType.cs.
| const int KineticaType.Column.DECIMAL8_MAX_PRECISION = 18 |
Maximum precision for 8-byte decimals.
Decimals with precision > 18 use 12 bytes.
Definition at line 39 of file KineticaType.cs.
| const int KineticaType.Column.DEFAULT_DECIMAL_PRECISION = 18 |
Default precision for decimal columns (matches Java API).
Definition at line 29 of file KineticaType.cs.
| const int KineticaType.Column.DEFAULT_DECIMAL_SCALE = 4 |
Default scale for decimal columns (matches Java API).
Definition at line 34 of file KineticaType.cs.