Skip to main content

Describes a Kinetica record type — its columns, properties, and Avro schema — and can create the type in the database. More…

Classes

class  Column
 Describes a single column of a KineticaType: its name, data type, and properties. More…
 

Public Member Functions

 KineticaType (IList< Column > columns)
 Create a KineticaType object with the given column information.
 
 KineticaType (string label, IList< Column > columns)
 Create a KineticaType object with the given column and label information.
 
 KineticaType (string label, IList< Column > columns, IDictionary< string, IList< string > > properties)
 Create a KineticaType object with the given column, label, and property information.
 
 KineticaType (string typeSchema)
 Create a KineticaType object using the string-formatted schema for the type.
 
 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.
 
string getLabel ()
 Gets the type’s label.
 
IList< ColumngetColumns ()
 Gets the list of columns that make up the type.
 
Column getColumn (int index)
 Gets the column at the given zero-based index.
 
Column getColumn (string name)
 Gets the column with the given name.
 
int getColumnCount ()
 Gets the number of columns in the type.
 
int getColumnIndex (string name)
 Gets the zero-based index of the column with the given name.
 
bool hasColumn (string name)
 Determines whether the type contains a column with the given name.
 
Schema getSchema ()
 Gets the Avro schema describing the type.
 
Type? getSourceType ()
 Gets the .NET source type this Kinetica type was built from, or null if none.
 
string getSchemaString ()
 Gets the Avro schema as a JSON string.
 
string getTypeID ()
 Gets the server-assigned type ID, or empty if the type has not been created in the database.
 
void saveSourceType (Type sourceType)
 Saves the given type as this KineticaType’s source type.
 
string create (Kinetica kinetica)
 Given a handle to the server, creates a type in the database based on this data type.
 
 KineticaType (IList< Column > columns)
 Create a KineticaType object with the given column information.
 
 KineticaType (string label, IList< Column > columns)
 Create a KineticaType object with the given column and label information.
 
 KineticaType (string label, IList< Column > columns, IDictionary< string, IList< string > > properties)
 Create a KineticaType object with the given column, label, and property information.
 
 KineticaType (string typeSchema)
 Create a KineticaType object using the string-formatted schema for the type.
 
 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.
 
string getLabel ()
 Gets the type’s label.
 
IList< ColumngetColumns ()
 Gets the list of columns that make up the type.
 
Column getColumn (int index)
 Gets the column at the given zero-based index.
 
Column getColumn (string name)
 Gets the column with the given name.
 
int getColumnCount ()
 Gets the number of columns in the type.
 
int getColumnIndex (string name)
 Gets the zero-based index of the column with the given name.
 
bool hasColumn (string name)
 Determines whether the type contains a column with the given name.
 
Schema getSchema ()
 Gets the Avro schema describing the type.
 
Type? getSourceType ()
 Gets the .NET source type this Kinetica type was built from, or null if none.
 
string getSchemaString ()
 Gets the Avro schema as a JSON string.
 
string getTypeID ()
 Gets the server-assigned type ID, or empty if the type has not been created in the database.
 
void saveSourceType (Type sourceType)
 Saves the given type as this KineticaType’s source type.
 
string create (Kinetica kinetica)
 Given a handle to the server, creates a type in the database based on this data type.
 

Static Public Member Functions

static KineticaType fromTable (Kinetica kinetica, string tableName)
 Create a KineticaType object based on an existing table in the database.
 
static KineticaType fromTypeID (Kinetica kinetica, string typeId)
 Create a KineticaType object based on an existing type in the database.
 
static KineticaType fromDynamicSchema (string dynamicTableSchemaString, Object[] columnHeaders, Object[] columnTypes)
 Create a KineticaType object based on information provided in a dynamic schema.
 
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.
 
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.
 
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.
 
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.
 
static KineticaType fromTable (Kinetica kinetica, string tableName)
 Create a KineticaType object based on an existing table in the database.
 
static KineticaType fromTypeID (Kinetica kinetica, string typeId)
 Create a KineticaType object based on an existing type in the database.
 
static KineticaType fromDynamicSchema (string dynamicTableSchemaString, Object[] columnHeaders, Object[] columnTypes)
 Create a KineticaType object based on information provided in a dynamic schema.
 
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.
 
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.
 
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.
 
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.
 

Detailed Description

Describes a Kinetica record type — its columns, properties, and Avro schema — and can create the type in the database.

Definition at line 9 of file KineticaType.cs.

Constructor & Destructor Documentation

◆ KineticaType() [1/10]

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

◆ KineticaType() [2/10]

kinetica.KineticaType.KineticaType (stringlabel,
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 708 of file KineticaType.cs.

◆ KineticaType() [3/10]

kinetica.KineticaType.KineticaType (stringlabel,
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 719 of file KineticaType.cs.

◆ KineticaType() [4/10]

kinetica.KineticaType.KineticaType (stringtypeSchema)
inline

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

Parameters
typeSchema

Definition at line 728 of file KineticaType.cs.

◆ KineticaType() [5/10]

kinetica.KineticaType.KineticaType (stringlabel,
stringtypeSchema,
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 742 of file KineticaType.cs.

◆ KineticaType() [6/10]

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

◆ KineticaType() [7/10]

kinetica.KineticaType.KineticaType (stringlabel,
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 708 of file KineticaType.cs.

◆ KineticaType() [8/10]

kinetica.KineticaType.KineticaType (stringlabel,
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 719 of file KineticaType.cs.

◆ KineticaType() [9/10]

kinetica.KineticaType.KineticaType (stringtypeSchema)
inline

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

Parameters
typeSchema

Definition at line 728 of file KineticaType.cs.

◆ KineticaType() [10/10]

kinetica.KineticaType.KineticaType (stringlabel,
stringtypeSchema,
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 742 of file KineticaType.cs.

Member Function Documentation

◆ create() [1/2]

string kinetica.KineticaType.create (Kineticakinetica)
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 795 of file KineticaType.cs.

◆ create() [2/2]

string kinetica.KineticaType.create (Kineticakinetica)
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 795 of file KineticaType.cs.

◆ fromClass() [1/4]

static KineticaType kinetica.KineticaType.fromClass (TyperecordClass,
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

This method uses reflection to inspect the record class properties. It is not compatible with trimming or Native AOT compilation.

Definition at line 527 of file KineticaType.cs.

◆ fromClass() [2/4]

static KineticaType kinetica.KineticaType.fromClass (TyperecordClass,
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

This method uses reflection to inspect the record class properties. It is not compatible with trimming or Native AOT compilation.

Definition at line 527 of file KineticaType.cs.

◆ fromClass() [3/4]

static KineticaType kinetica.KineticaType.fromClass (TyperecordClass,
stringlabel,
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

This method uses reflection to inspect the record class properties. It is not compatible with trimming or Native AOT compilation.

Definition at line 547 of file KineticaType.cs.

◆ fromClass() [4/4]

static KineticaType kinetica.KineticaType.fromClass (TyperecordClass,
stringlabel,
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

This method uses reflection to inspect the record class properties. It is not compatible with trimming or Native AOT compilation.

Definition at line 547 of file KineticaType.cs.

◆ fromDynamicSchema() [1/2]

static KineticaType kinetica.KineticaType.fromDynamicSchema (stringdynamicTableSchemaString,
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

This method parses dynamic JSON schemas at runtime and creates types dynamically. It is not compatible with trimming or Native AOT compilation.

Definition at line 309 of file KineticaType.cs.

◆ fromDynamicSchema() [2/2]

static KineticaType kinetica.KineticaType.fromDynamicSchema (stringdynamicTableSchemaString,
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

This method parses dynamic JSON schemas at runtime and creates types dynamically. It is not compatible with trimming or Native AOT compilation.

Definition at line 309 of file KineticaType.cs.

◆ fromObject() [1/4]

static KineticaType kinetica.KineticaType.fromObject (ObjectrecordObj,
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

This method uses reflection to inspect the record object’s type. It is not compatible with trimming or Native AOT compilation.

Definition at line 662 of file KineticaType.cs.

◆ fromObject() [2/4]

static KineticaType kinetica.KineticaType.fromObject (ObjectrecordObj,
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

This method uses reflection to inspect the record object’s type. It is not compatible with trimming or Native AOT compilation.

Definition at line 662 of file KineticaType.cs.

◆ fromObject() [3/4]

static KineticaType kinetica.KineticaType.fromObject (ObjectrecordObj,
stringlabel = "",
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

This method uses reflection to inspect the record object’s type. It is not compatible with trimming or Native AOT compilation.

Definition at line 682 of file KineticaType.cs.

◆ fromObject() [4/4]

static KineticaType kinetica.KineticaType.fromObject (ObjectrecordObj,
stringlabel = "",
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

This method uses reflection to inspect the record object’s type. It is not compatible with trimming or Native AOT compilation.

Definition at line 682 of file KineticaType.cs.

◆ fromTable() [1/2]

static KineticaType kinetica.KineticaType.fromTable (Kineticakinetica,
stringtableName )
inlinestatic

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

Parameters
kinetica
tableName
Returns

Definition at line 253 of file KineticaType.cs.

◆ fromTable() [2/2]

static KineticaType kinetica.KineticaType.fromTable (Kineticakinetica,
stringtableName )
inlinestatic

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

Parameters
kinetica
tableName
Returns

Definition at line 253 of file KineticaType.cs.

◆ fromTypeID() [1/2]

static KineticaType kinetica.KineticaType.fromTypeID (Kineticakinetica,
stringtypeId )
inlinestatic

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

Parameters
kinetica
typeId
Returns

Definition at line 284 of file KineticaType.cs.

◆ fromTypeID() [2/2]

static KineticaType kinetica.KineticaType.fromTypeID (Kineticakinetica,
stringtypeId )
inlinestatic

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

Parameters
kinetica
typeId
Returns

Definition at line 284 of file KineticaType.cs.

◆ getColumn() [1/4]

Column kinetica.KineticaType.getColumn (intindex)
inline

Gets the column at the given zero-based index.

Parameters
indexThe zero-based column index.

Definition at line 758 of file KineticaType.cs.

◆ getColumn() [2/4]

Column kinetica.KineticaType.getColumn (intindex)
inline

Gets the column at the given zero-based index.

Parameters
indexThe zero-based column index.

Definition at line 758 of file KineticaType.cs.

◆ getColumn() [3/4]

Column kinetica.KineticaType.getColumn (stringname)
inline

Gets the column with the given name.

Parameters
nameThe column name.

Definition at line 761 of file KineticaType.cs.

◆ getColumn() [4/4]

Column kinetica.KineticaType.getColumn (stringname)
inline

Gets the column with the given name.

Parameters
nameThe column name.

Definition at line 761 of file KineticaType.cs.

◆ getColumnCount() [1/2]

int kinetica.KineticaType.getColumnCount ()
inline

Gets the number of columns in the type.

Definition at line 763 of file KineticaType.cs.

◆ getColumnCount() [2/2]

int kinetica.KineticaType.getColumnCount ()
inline

Gets the number of columns in the type.

Definition at line 763 of file KineticaType.cs.

◆ getColumnIndex() [1/2]

int kinetica.KineticaType.getColumnIndex (stringname)
inline

Gets the zero-based index of the column with the given name.

Parameters
nameThe column name.

Definition at line 766 of file KineticaType.cs.

◆ getColumnIndex() [2/2]

int kinetica.KineticaType.getColumnIndex (stringname)
inline

Gets the zero-based index of the column with the given name.

Parameters
nameThe column name.

Definition at line 766 of file KineticaType.cs.

◆ getColumns() [1/2]

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

Gets the list of columns that make up the type.

Definition at line 755 of file KineticaType.cs.

◆ getColumns() [2/2]

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

Gets the list of columns that make up the type.

Definition at line 755 of file KineticaType.cs.

◆ getLabel() [1/2]

string kinetica.KineticaType.getLabel ()
inline

Gets the type’s label.

Definition at line 753 of file KineticaType.cs.

◆ getLabel() [2/2]

string kinetica.KineticaType.getLabel ()
inline

Gets the type’s label.

Definition at line 753 of file KineticaType.cs.

◆ getSchema() [1/2]

Schema kinetica.KineticaType.getSchema ()
inline

Gets the Avro schema describing the type.

Definition at line 771 of file KineticaType.cs.

◆ getSchema() [2/2]

Schema kinetica.KineticaType.getSchema ()
inline

Gets the Avro schema describing the type.

Definition at line 771 of file KineticaType.cs.

◆ getSchemaString() [1/2]

string kinetica.KineticaType.getSchemaString ()
inline

Gets the Avro schema as a JSON string.

Definition at line 775 of file KineticaType.cs.

◆ getSchemaString() [2/2]

string kinetica.KineticaType.getSchemaString ()
inline

Gets the Avro schema as a JSON string.

Definition at line 775 of file KineticaType.cs.

◆ getSourceType() [1/2]

Type? kinetica.KineticaType.getSourceType ()
inline

Gets the .NET source type this Kinetica type was built from, or null if none.

Definition at line 773 of file KineticaType.cs.

◆ getSourceType() [2/2]

Type? kinetica.KineticaType.getSourceType ()
inline

Gets the .NET source type this Kinetica type was built from, or null if none.

Definition at line 773 of file KineticaType.cs.

◆ getTypeID() [1/2]

string kinetica.KineticaType.getTypeID ()
inline

Gets the server-assigned type ID, or empty if the type has not been created in the database.

Definition at line 777 of file KineticaType.cs.

◆ getTypeID() [2/2]

string kinetica.KineticaType.getTypeID ()
inline

Gets the server-assigned type ID, or empty if the type has not been created in the database.

Definition at line 777 of file KineticaType.cs.

◆ hasColumn() [1/2]

bool kinetica.KineticaType.hasColumn (stringname)
inline

Determines whether the type contains a column with the given name.

Parameters
nameThe column name.

Definition at line 769 of file KineticaType.cs.

◆ hasColumn() [2/2]

bool kinetica.KineticaType.hasColumn (stringname)
inline

Determines whether the type contains a column with the given name.

Parameters
nameThe column name.

Definition at line 769 of file KineticaType.cs.

◆ saveSourceType() [1/2]

void kinetica.KineticaType.saveSourceType (TypesourceType)
inline

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

Parameters
sourceTypeThe type that works as the source.

Definition at line 783 of file KineticaType.cs.

◆ saveSourceType() [2/2]

void kinetica.KineticaType.saveSourceType (TypesourceType)
inline

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

Parameters
sourceTypeThe type that works as the source.

Definition at line 783 of file KineticaType.cs.


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