Kinetica   C#   API  Version 7.2.3.0
kinetica.CreateTableRequest Class Reference

A set of parameters for Kinetica.createTable. More...

+ Inheritance diagram for kinetica.CreateTableRequest:
+ Collaboration diagram for kinetica.CreateTableRequest:

Classes

struct  Options
 A set of string constants for the parameter options. More...
 

Public Member Functions

 CreateTableRequest ()
 Constructs a CreateTableRequest object with default parameters. More...
 
 CreateTableRequest (string table_name, string type_id, IDictionary< string, string > options=null)
 Constructs a CreateTableRequest object with the specified parameters. More...
 
 CreateTableRequest ()
 Constructs a CreateTableRequest object with default parameters. More...
 
 CreateTableRequest (string table_name, string type_id, IDictionary< string, string > options=null)
 Constructs a CreateTableRequest object with the specified parameters. More...
 
- Public Member Functions inherited from kinetica.KineticaData
 KineticaData (KineticaType type)
 Constructor from Kinetica Type More...
 
 KineticaData (System.Type type=null)
 Default constructor, with optional System.Type More...
 
object Get (int fieldPos)
 Retrieve a specific property from this object More...
 
void Put (int fieldPos, object fieldValue)
 Write a specific property to this object More...
 
 KineticaData (KineticaType type)
 Constructor from Kinetica Type More...
 
 KineticaData (System.Type type=null)
 Default constructor, with optional System.Type More...
 
object Get (int fieldPos)
 Retrieve a specific property from this object More...
 
void Put (int fieldPos, object fieldValue)
 Write a specific property to this object More...
 

Properties

string table_name [get, set]
 Name of the table to be created, in [schema_name. More...
 
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). More...
 
IDictionary< string, string > options = new Dictionary<string, string>() [get, set]
 Optional parameters. More...
 
- Properties inherited from kinetica.KineticaData
Schema Schema [get]
 Avro Schema for this class More...
 
- Properties inherited from Avro.Specific.ISpecificRecord
Schema Schema [get]
 

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. More...
 
static ? RecordSchema SchemaFromType (System.Type t, KineticaType? ktype=null)
 Create an Avro Schema from a System.Type and a KineticaType. More...
 

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

[
["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 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 54 of file CreateTable.cs.

Constructor & Destructor Documentation

◆ CreateTableRequest() [1/4]

kinetica.CreateTableRequest.CreateTableRequest ( )
inline

Constructs a CreateTableRequest object with default parameters.

Definition at line 762 of file CreateTable.cs.

◆ CreateTableRequest() [2/4]

kinetica.CreateTableRequest.CreateTableRequest ( string  table_name,
string  type_id,
IDictionary< string, string >  options = null 
)
inline

Constructs a CreateTableRequest object with the specified parameters.

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 Kinetica.createType) or a type definition (as described above).
optionsOptional parameters. The default value is an empty Dictionary.

Definition at line 1145 of file CreateTable.cs.

◆ CreateTableRequest() [3/4]

kinetica.CreateTableRequest.CreateTableRequest ( )
inline

Constructs a CreateTableRequest object with default parameters.

Definition at line 762 of file CreateTable.cs.

◆ CreateTableRequest() [4/4]

kinetica.CreateTableRequest.CreateTableRequest ( string  table_name,
string  type_id,
IDictionary< string, string >  options = null 
)
inline

Constructs a CreateTableRequest object with the specified parameters.

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 Kinetica.createType) or a type definition (as described above).
optionsOptional parameters. The default value is an empty Dictionary.

Definition at line 1145 of file CreateTable.cs.

Property Documentation

◆ options

IDictionary< string, string > kinetica.CreateTableRequest.options = new Dictionary<string, string>()
getset

Optional parameters.

The default value is an empty Dictionary.

Definition at line 758 of file CreateTable.cs.

◆ table_name

string kinetica.CreateTableRequest.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 387 of file CreateTable.cs.

◆ type_id

string kinetica.CreateTableRequest.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 393 of file CreateTable.cs.


The documentation for this class was generated from the following file: