Skip to main content

◆ createTable() [1/2]

CreateTableResponse kinetica.Kinetica.createTable (CreateTableRequestrequest_)
inline

Creates a new table with the given type (definition of columns).

The type is specified in type_id as either a numerical type ID (as returned by 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:

[
[“id”, “int8”, “primary_key”],
[“dept_id”, “int8”, “primary_key”, “shard_key”],
[“manager_id”, “int8”, “nullable”],
[“first_name”, “char32”],
[“last_name”, “char64”],
[“salary”, “decimal”],
[“hire_date”, “date”]
]

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 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.

Parameters
request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

Definition at line 23804 of file KineticaFunctions.cs.

◆ createTable() [2/2]

CreateTableResponse kinetica.Kinetica.createTable (stringtable_name,
stringtype_id,
IDictionary< string, string >options = null )
inline

Creates a new table with the given type (definition of columns).

The type is specified in type_id as either a numerical type ID (as returned by 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:

[
[“id”, “int8”, “primary_key”],
[“dept_id”, “int8”, “primary_key”, “shard_key”],
[“manager_id”, “int8”, “nullable”],
[“first_name”, “char32”],
[“last_name”, “char64”],
[“salary”, “decimal”],
[“hire_date”, “date”]
]

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 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.

Parameters
table_nameName 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_idThe type for the table, specified as either an existing table’s numerical type ID (as returned by createType) or a type definition (as described above).
optionsOptional parameters.The default value is an empty Dictionary.
Returns
Response object containing the result of the operation.

Definition at line 24341 of file KineticaFunctions.cs.

◆ CreateTableAsync() [1/2]

async System.Threading.Tasks.Task< CreateTableResponse > kinetica.Kinetica.CreateTableAsync (CreateTableRequestrequest_,
System.Threading.CancellationTokencancellationToken = default )
inline

Creates a new table with the given type (definition of columns).

(async)

The type is specified in type_id as either a numerical type ID (as returned by 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:

[
[“id”, “int8”, “primary_key”],
[“dept_id”, “int8”, “primary_key”, “shard_key”],
[“manager_id”, “int8”, “nullable”],
[“first_name”, “char32”],
[“last_name”, “char64”],
[“salary”, “decimal”],
[“hire_date”, “date”]
]

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 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.

Parameters
request_Request object containing the parameters for the operation.
cancellationTokenCancellation token to cancel the operation.
Returns
Task that returns the response object containing the result of the operation.

Definition at line 23860 of file KineticaFunctions.cs.

◆ CreateTableAsync() [2/2]

async System.Threading.Tasks.Task< CreateTableResponse > kinetica.Kinetica.CreateTableAsync (stringtable_name,
stringtype_id,
IDictionary< string, string >options = null,
System.Threading.CancellationTokencancellationToken = default )
inline

Creates a new table with the given type (definition of columns).

(async)

The type is specified in type_id as either a numerical type ID (as returned by 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:

[
[“id”, “int8”, “primary_key”],
[“dept_id”, “int8”, “primary_key”, “shard_key”],
[“manager_id”, “int8”, “nullable”],
[“first_name”, “char32”],
[“last_name”, “char64”],
[“salary”, “decimal”],
[“hire_date”, “date”]
]

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 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.

Parameters
table_nameName 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_idThe type for the table, specified as either an existing table’s numerical type ID (as returned by createType) or a type definition (as described above).
optionsOptional parameters.The default value is an empty Dictionary.
cancellationTokenCancellation token to cancel the operation.
Returns
Task that returns the response object containing the result of the operation.

Definition at line 24823 of file KineticaFunctions.cs.