Kinetica   C#   API  Version 7.2.3.0
kinetica.KineticaType Class Reference

Classes

class  Column
 

Public Member Functions

 KineticaType (IList< Column > columns)
 Create a KineticaType object with the given column information. More...
 
 KineticaType (string label, IList< Column > columns)
 Create a KineticaType object with the given column and label information. More...
 
 KineticaType (string label, IList< Column > columns, IDictionary< string, IList< string >> properties)
 Create a KineticaType object with the given column, label, and property information. More...
 
 KineticaType (string typeSchema)
 Create a KineticaType object using the string-formatted schema for the type. More...
 
 KineticaType (string label, string typeSchema, IDictionary< string, IList< string >> properties, string? typeId=null)
 Create a KineticaType object using the string-formatted schema and properties for its columns. More...
 
string getLabel ()
 
IList< ColumngetColumns ()
 
Column getColumn (int index)
 
Column getColumn (string name)
 
int getColumnCount ()
 
int getColumnIndex (string name)
 
bool hasColumn (string name)
 
Schema getSchema ()
 
Type? getSourceType ()
 
string getSchemaString ()
 
string getTypeID ()
 
void saveSourceType (Type sourceType)
 Saves the given type as this KineticaType's source type. More...
 
string create (Kinetica kinetica)
 Given a handle to the server, creates a type in the database based on this data type. More...
 

Static Public Member Functions

static KineticaType fromTable (Kinetica kinetica, string tableName)
 Create a KineticaType object based on an existing table in the database. More...
 
static KineticaType fromTypeID (Kinetica kinetica, string typeId)
 Create a KineticaType object based on an existing type in the database. More...
 
static KineticaType fromDynamicSchema (string dynamicTableSchemaString, Object[] columnHeaders, Object[] columnTypes)
 Create a KineticaType object based on information provided in a dynamic schema. More...
 
static KineticaType fromClass (Type recordClass, IDictionary< string, IList< string >> properties=null)
 Create a KineticaType object from properties of a record class and Kinetica column properties. More...
 
static KineticaType fromClass (Type recordClass, string label, IDictionary< string, IList< string >>? properties=null)
 Create a KineticaType object from properties of a record class and Kinetica column properties. More...
 
static KineticaType fromObject (Object recordObj, IDictionary< string, IList< string >> properties=null)
 Create a KineticaType object from properties of a record object and Kinetica column properties. More...
 
static KineticaType fromObject (Object recordObj, string label="", IDictionary< string, IList< string >> properties=null)
 Create a KineticaType object from properties of a record object and Kinetica column properties. More...
 

Detailed Description

Definition at line 9 of file KineticaType.cs.

Constructor & Destructor Documentation

◆ KineticaType() [1/5]

kinetica.KineticaType.KineticaType ( IList< Column columns)
inline

Create a KineticaType object with the given column information.

Parameters
columnsA list of Columns with information on all the columns for the type.

Definition at line 533 of file KineticaType.cs.

◆ KineticaType() [2/5]

kinetica.KineticaType.KineticaType ( string  label,
IList< Column columns 
)
inline

Create a KineticaType object with the given column and label information.

Parameters
labelThe label for the type.
columnsA list of Columns with information on all the columns for the type.

Definition at line 545 of file KineticaType.cs.

◆ KineticaType() [3/5]

kinetica.KineticaType.KineticaType ( string  label,
IList< Column columns,
IDictionary< string, IList< string >>  properties 
)
inline

Create a KineticaType object with the given column, label, and property information.

Parameters
labelThe label for the type.
columnsA list of Columns with information on all the columns for the type.
propertiesA per-column property information

Definition at line 556 of file KineticaType.cs.

◆ KineticaType() [4/5]

kinetica.KineticaType.KineticaType ( string  typeSchema)
inline

Create a KineticaType object using the string-formatted schema for the type.

Parameters
typeSchema

Definition at line 565 of file KineticaType.cs.

◆ KineticaType() [5/5]

kinetica.KineticaType.KineticaType ( string  label,
string  typeSchema,
IDictionary< string, IList< string >>  properties,
string?  typeId = null 
)
inline

Create a KineticaType object using the string-formatted schema and properties for its columns.

Parameters
labelThe label for the type.
typeSchemaThe string-formatted schema for the type.
propertiesA per-column based set of properties.
typeIdAn optional ID for this type with which to identify it in the database.

Definition at line 579 of file KineticaType.cs.

Member Function Documentation

◆ create()

string kinetica.KineticaType.create ( Kinetica  kinetica)
inline

Given a handle to the server, creates a type in the database based on this data type.

Parameters
kineticaThe handle to the database server.
Returns
The ID with which the database identifies this type.

Definition at line 617 of file KineticaType.cs.

◆ fromClass() [1/2]

static KineticaType kinetica.KineticaType.fromClass ( Type  recordClass,
IDictionary< string, IList< string >>  properties = null 
)
inlinestatic

Create a KineticaType object from properties of a record class and Kinetica column properties.

It ignores any properties inherited from base classes, and also ignores any member fields of the class.

For integer, long, float, and double column types, the user can use the nullable type (e.g. int?) to declare the column to be nullable. The properties does not need to contain the ColumnProperty.NULLABLE property. However, for string type columns, instead of using nullable type, use the regular string type; additionally, add the ColumnProperty.NULLABLE in properties .

Parameters
recordClassA class type.
propertiesProperties for the columns.
Returns

Definition at line 379 of file KineticaType.cs.

◆ fromClass() [2/2]

static KineticaType kinetica.KineticaType.fromClass ( Type  recordClass,
string  label,
IDictionary< string, IList< string >>?  properties = null 
)
inlinestatic

Create a KineticaType object from properties of a record class and Kinetica column properties.

It ignores any properties inherited from base classes, and also ignores any member fields of the class.

Parameters
recordClassA class type.
labelAny label for the type.
propertiesProperties for the columns.
Returns

Definition at line 394 of file KineticaType.cs.

◆ fromDynamicSchema()

static KineticaType kinetica.KineticaType.fromDynamicSchema ( string  dynamicTableSchemaString,
Object []  columnHeaders,
Object []  columnTypes 
)
inlinestatic

Create a KineticaType object based on information provided in a dynamic schema.

Parameters
dynamicTableSchemaStringThe dynamic schema string.
columnHeadersList of column names.
columnTypesList of column types.
Returns

Definition at line 201 of file KineticaType.cs.

◆ fromObject() [1/2]

static KineticaType kinetica.KineticaType.fromObject ( Object  recordObj,
IDictionary< string, IList< string >>  properties = null 
)
inlinestatic

Create a KineticaType object from properties of a record object and Kinetica column properties.

It ignores any properties inherited from base classes, and also ignores any member fields of the class.

Parameters
recordObjA record object.
propertiesProperties for the columns.
Returns

Definition at line 504 of file KineticaType.cs.

◆ fromObject() [2/2]

static KineticaType kinetica.KineticaType.fromObject ( Object  recordObj,
string  label = "",
IDictionary< string, IList< string >>  properties = null 
)
inlinestatic

Create a KineticaType object from properties of a record object and Kinetica column properties.

It ignores any properties inherited from base classes, and also ignores any member fields of the class.

Parameters
recordObjA record object.
labelAny label for the type.
propertiesProperties for the columns.
Returns

Definition at line 519 of file KineticaType.cs.

◆ fromTable()

static KineticaType kinetica.KineticaType.fromTable ( Kinetica  kinetica,
string  tableName 
)
inlinestatic

Create a KineticaType object based on an existing table in the database.

Parameters
kinetica
tableName
Returns

Definition at line 150 of file KineticaType.cs.

◆ fromTypeID()

static KineticaType kinetica.KineticaType.fromTypeID ( Kinetica  kinetica,
string  typeId 
)
inlinestatic

Create a KineticaType object based on an existing type in the database.

Parameters
kinetica
typeId
Returns

Definition at line 181 of file KineticaType.cs.

◆ getColumn() [1/2]

Column kinetica.KineticaType.getColumn ( int  index)
inline

Definition at line 591 of file KineticaType.cs.

◆ getColumn() [2/2]

Column kinetica.KineticaType.getColumn ( string  name)
inline

Definition at line 592 of file KineticaType.cs.

◆ getColumnCount()

int kinetica.KineticaType.getColumnCount ( )
inline

Definition at line 593 of file KineticaType.cs.

◆ getColumnIndex()

int kinetica.KineticaType.getColumnIndex ( string  name)
inline

Definition at line 594 of file KineticaType.cs.

◆ getColumns()

IList<Column> kinetica.KineticaType.getColumns ( )
inline

Definition at line 590 of file KineticaType.cs.

◆ getLabel()

string kinetica.KineticaType.getLabel ( )
inline

Definition at line 589 of file KineticaType.cs.

◆ getSchema()

Schema kinetica.KineticaType.getSchema ( )
inline

Definition at line 596 of file KineticaType.cs.

◆ getSchemaString()

string kinetica.KineticaType.getSchemaString ( )
inline

Definition at line 598 of file KineticaType.cs.

◆ getSourceType()

Type? kinetica.KineticaType.getSourceType ( )
inline

Definition at line 597 of file KineticaType.cs.

◆ getTypeID()

string kinetica.KineticaType.getTypeID ( )
inline

Definition at line 599 of file KineticaType.cs.

◆ hasColumn()

bool kinetica.KineticaType.hasColumn ( string  name)
inline

Definition at line 595 of file KineticaType.cs.

◆ saveSourceType()

void kinetica.KineticaType.saveSourceType ( Type  sourceType)
inline

Saves the given type as this KineticaType's source type.

Parameters
sourceTypeThe type that works as the source.

Definition at line 605 of file KineticaType.cs.


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