A set of parameters for Kinetica.createTable. More…
Classes | |
| struct | Options |
| A set of string constants for the parameter CreateTableRequest.options. More… | |
Public Member Functions | |
| CreateTableRequest () | |
| Constructs a CreateTableRequest object with default parameters. | |
| CreateTableRequest (string table_name, string type_id, IDictionary< string, string > options=null) | |
| Constructs a CreateTableRequest object with the specified parameters. | |
| CreateTableRequest () | |
| Constructs a CreateTableRequest object with default parameters. | |
| CreateTableRequest (string table_name, string type_id, IDictionary< string, string > options=null) | |
| Constructs a CreateTableRequest object with the specified parameters. | |
| Public Member Functions inherited from kinetica.KineticaData | |
| KineticaData (KineticaType type) | |
| Constructor from Kinetica Type. | |
| KineticaData (System.Type type=null) | |
| Default constructor, with optional System.Type. | |
| object | Get (int fieldPos) |
| Retrieve a specific property from this object. | |
| void | Put (int fieldPos, object fieldValue) |
| Write a specific property to this object. | |
| KineticaData (KineticaType type) | |
| Constructor from Kinetica Type. | |
| KineticaData (System.Type type=null) | |
| Default constructor, with optional System.Type. | |
| object | Get (int fieldPos) |
| Retrieve a specific property from this object. | |
| void | Put (int fieldPos, object fieldValue) |
| Write a specific property to this object. | |
Properties | |
| string | table_name [get, set] |
| Name of the table to be created, in [schema_name. | |
| string | type_id [get, set] |
| The type for the table, specified as either an existing table’s numerical type ID (as returned by Kinetica.createType) or a type definition (as described above). | |
| IDictionary< string, string > | options = new Dictionary<string, string>() [get, set] |
| Optional parameters. | |
| Properties inherited from kinetica.KineticaData | |
| Schema | Schema [get] |
| Avro Schema for this class. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from kinetica.KineticaData | |
| static ? RecordSchema | SchemaFromType (System.Type t, KineticaType? ktype=null) |
| Create an Avro Schema from a System.Type and a KineticaType. | |
| static ? RecordSchema | SchemaFromType (System.Type t, KineticaType? ktype=null) |
| Create an Avro Schema from a System.Type and a KineticaType. | |
Detailed Description
A set of parameters for Kinetica.createTable.
Creates a new table with the given type (definition of columns). The type is specified in CreateTableRequest.type_id as either a numerical type ID (as returned by Kinetica.createType) or as a list of columns, each specified as a list of the column name, data type, and any column attributes.
Example of a type definition with some parameters:
Each column definition consists of the column name (which should meet the standard column naming criteria), the column’s specific type (int, long, float, double, string, bytes, or any of the properties map values from Kinetica.createType), and any data handling, data key, or data replacement properties.
A table may optionally be designated to use a replicated distribution scheme, or be assigned: foreign keys to other tables, a partitioning scheme, and/or a tier strategy.
Definition at line 53 of file CreateTable.cs.
Constructor & Destructor Documentation
◆ CreateTableRequest() [1/4]
| inline |
Constructs a CreateTableRequest object with default parameters.
Definition at line 885 of file CreateTable.cs.
◆ CreateTableRequest() [2/4]
| inline |
Constructs a CreateTableRequest object with the specified parameters.
| table_name | Name of the table to be created, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria. Error for requests with existing table of the same name and type ID may be suppressed by using the NO_ERROR_IF_EXISTS option. |
| type_id | The type for the table, specified as either an existing table’s numerical type ID (as returned by Kinetica.createType) or a type definition (as described above). |
| options | Optional parameters.
|
Definition at line 1319 of file CreateTable.cs.
◆ CreateTableRequest() [3/4]
| inline |
Constructs a CreateTableRequest object with default parameters.
Definition at line 885 of file CreateTable.cs.
◆ CreateTableRequest() [4/4]
| inline |
Constructs a CreateTableRequest object with the specified parameters.
| table_name | Name of the table to be created, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria. Error for requests with existing table of the same name and type ID may be suppressed by using the NO_ERROR_IF_EXISTS option. |
| type_id | The type for the table, specified as either an existing table’s numerical type ID (as returned by Kinetica.createType) or a type definition (as described above). |
| options | Optional parameters.
|
Definition at line 1319 of file CreateTable.cs.
Property Documentation
◆ options
| getset |
Optional parameters.
- NO_ERROR_IF_EXISTS: If TRUE, prevents an error from occurring if the table already exists and is of the given type. If a table with the same ID but a different type exists, it is still an error. Supported values:The default value is FALSE.
- CREATE_TEMP_TABLE: If TRUE, a unique temporary table name will be generated in the sys_temp schema and used in place of CreateTableRequest.table_name. If IS_RESULT_TABLE is TRUE, then this is always allowed even if the caller does not have permission to create tables. The generated name is returned in QUALIFIED_TABLE_NAME. Supported values:The default value is FALSE.
- COLLECTION_NAME: [DEPRECATED–please specify the containing schema as part of CreateTableRequest.table_name and use Kinetica.createSchema to create the schema if non-existent] Name of a schema which is to contain the newly created table. If the schema is non-existent, it will be automatically created.
- IS_COLLECTION: [DEPRECATED–please use Kinetica.createSchema to create a schema instead] Indicates whether to create a schema instead of a table. Supported values:The default value is FALSE.
- IS_REPLICATED: Affects the distribution scheme for the table’s data. If TRUE and the given type has no explicit shard key defined, the table will be replicated. If FALSE, the table will be sharded according to the shard key specified in the given CreateTableRequest.type_id, or randomly sharded, if no shard key is specified. Note that a type containing a shard key cannot be used to create a replicated table. Supported values:The default value is FALSE.
- FOREIGN_KEYS: Semicolon-separated list of foreign keys, of the format ‘(source_column_name [, …]) references target_table_name(primary_key_column_name [, …]) [as foreign_key_name]’.
- FOREIGN_SHARD_KEY: Foreign shard key of the format ‘source_column references shard_by_column from target_table(primary_key_column)’.
- PARTITION_TYPE: Partitioning scheme to use. Supported values:
- RANGE: Use range partitioning.
- INTERVAL: Use interval partitioning.
- LIST: Use list partitioning.
- HASH: Use hash partitioning.
- SERIES: Use series partitioning.
- PARTITION_KEYS: Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined by PARTITION_DEFINITIONS.
- PARTITION_DEFINITIONS: Comma-separated list of partition definitions, whose format depends on the choice of PARTITION_TYPE. See range partitioning, interval partitioning, list partitioning, hash partitioning, or series partitioning for example formats.
- IS_AUTOMATIC_PARTITION: If TRUE, a new partition will be created for values which don’t fall into an existing partition. Currently only supported for list partitions. Supported values:The default value is FALSE.
- TTL: Sets the TTL of the table specified in CreateTableRequest.table_name.
- CHUNK_SIZE: Indicates the number of records per chunk to be used for this table.
- CHUNK_COLUMN_MAX_MEMORY: Indicates the target maximum data size for each column in a chunk to be used for this table.
- CHUNK_MAX_MEMORY: Indicates the target maximum data size for all columns in a chunk to be used for this table.
- IS_RESULT_TABLE: Indicates whether the table is a memory-only table. A result table cannot contain columns with text_search data-handling, and it will not be retained if the server is restarted. Supported values:The default value is FALSE.
- STRATEGY_DEFINITION: The tier strategy for the table and its columns.
- COMPRESSION_CODEC: The default compression codec for this table’s columns.
- LOAD_VECTORS_POLICY: Set startup data loading scheme for the table. Supported values:
- ALWAYS: Load as much vector data as possible into memory before accepting requests.
- LAZY: Load the necessary vector data at start, and load the remainder lazily.
- ON_DEMAND: Load vector data as requests use it.
- SYSTEM: Load vector data using the system-configured default.
- BUILD_PK_INDEX_POLICY: Set startup primary-key index generation scheme for the table. Supported values:
- ALWAYS: Generate as much primary key index data as possible before accepting requests.
- LAZY: Generate the necessary primary key index data at start, and load the remainder lazily.
- ON_DEMAND: Generate primary key index data as requests use it.
- SYSTEM: Generate primary key index data using the system-configured default.
The default value is an empty Dictionary.
Definition at line 881 of file CreateTable.cs.
◆ table_name
| getset |
Name of the table to be created, in [schema_name.
]table_name format, using standard name resolution rules and meeting table naming criteria.
Error for requests with existing table of the same name and type ID may be suppressed by using the NO_ERROR_IF_EXISTS option.
Definition at line 456 of file CreateTable.cs.
◆ type_id
| getset |
The type for the table, specified as either an existing table’s numerical type ID (as returned by Kinetica.createType) or a type definition (as described above).
Definition at line 462 of file CreateTable.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/Protocol/CreateTable.cs
- Kinetica/Protocol/CreateTable.cs