Kinetica C# API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
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 ()
 
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 dynamic_table_schema_string, Object[] column_headers, Object[] column_types)
 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

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 535 of file KineticaType.cs.

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 547 of file KineticaType.cs.

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 558 of file KineticaType.cs.

kinetica.KineticaType.KineticaType ( string  typeSchema)
inline

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

Parameters
typeSchema

Definition at line 567 of file KineticaType.cs.

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 581 of file KineticaType.cs.

Member Function Documentation

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 618 of file KineticaType.cs.

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 378 of file KineticaType.cs.

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 393 of file KineticaType.cs.

static KineticaType kinetica.KineticaType.fromDynamicSchema ( string  dynamic_table_schema_string,
Object[]  column_headers,
Object[]  column_types 
)
inlinestatic

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

Parameters
dynamic_table_schema_stringThe dynamic schema string.
column_headersList of column names.
column_typesList of column types.
Returns

Definition at line 208 of file KineticaType.cs.

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 506 of file KineticaType.cs.

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 521 of file KineticaType.cs.

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 157 of file KineticaType.cs.

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 188 of file KineticaType.cs.

Column kinetica.KineticaType.getColumn ( int  index)
inline

Definition at line 593 of file KineticaType.cs.

Column kinetica.KineticaType.getColumn ( string  name)
inline

Definition at line 594 of file KineticaType.cs.

int kinetica.KineticaType.getColumnCount ( )
inline

Definition at line 595 of file KineticaType.cs.

int kinetica.KineticaType.getColumnIndex ( string  name)
inline

Definition at line 596 of file KineticaType.cs.

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

Definition at line 592 of file KineticaType.cs.

string kinetica.KineticaType.getLabel ( )
inline

Definition at line 591 of file KineticaType.cs.

Schema kinetica.KineticaType.getSchema ( )
inline

Definition at line 598 of file KineticaType.cs.

string kinetica.KineticaType.getSchemaString ( )
inline

Definition at line 599 of file KineticaType.cs.

string kinetica.KineticaType.getTypeID ( )
inline

Definition at line 600 of file KineticaType.cs.

bool kinetica.KineticaType.hasColumn ( string  name)
inline

Definition at line 597 of file KineticaType.cs.

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 606 of file KineticaType.cs.


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