Skip to main content

Class GPUdbRecordType

class gpudb.GPUdbRecordType(columns: List[GPUdbRecordColumn] = None, label=, schema_string=None, column_properties: List[str] = None)

Represent the data type for a given record in GPUdb. Has convenience functions for creating the type in GPUdb (among others).

Create a GPUdbRecordType object which represents the data type for a given record for GPUdb.

Parameters

property columns

A list of columns for the record type.

property column_names

A list of the names of the columns for the record type.

property label

A label for the record type.

property schema_string

The schema string for the record type.

property record_schema

The avro schema for the record type.

property record_type

The RecordType object for the record type.

property column_properties

The properties for the type’s columns.

property type_id

The ID for the type, if it has already been registered with GPUdb.

create_type(gpudb, options=None)

Create the record type in GPUdb so that users can create tables using this type.

Parameters

Returns

get_column(column_id)

Return the desired column; fetch by name or index.

Parameters

Returns