Skip to main content

Class GPUdbRecord

class gpudb.GPUdbRecord(record_type, column_values)

Represent the data for a given record in GPUdb. Has convenience functions for encoding/decoding the data.

Create a GPUdbRecord object which holds the data for a given record.

Parameters

static decode_binary_data(record_type, binary_data)

Decode binary encoded data (generally returned by GPUdb) using the schema for the data. Return the decoded data.

Parameters

Returns

static decode_dynamic_binary_data(record_type, binary_data)

Decode binary encoded data (generally returned by GPUdb) using the schema for the data. Return the decoded data.

Parameters

Returns

static decode_json_string_data(json_string_data)

Decode binary encoded data in string form (generally returned by GPUdb). Return the decoded data.

Parameters

Returns

static decode_dynamic_json_data_column_major(dynamic_json_data, dynamic_schema)

Decode JSON encoded data (generally returned by GPUdb) using the embedded dynamic schema for the data. Return the decoded data.

Parameters

Returns

static decode_dynamic_json_data_row_major(dynamic_json_data, dynamic_schema)

Decode JSON encoded data (generally returned by GPUdb) using the embedded dynamic schema for the data. Return the decoded data.

Parameters

Returns

static convert_data_col_major_to_row_major(col_major_data, col_major_schema_str)

Given some column major data, convert it to row major data.

Parameters

Returns

static transpose_data_to_col_major(row_major_data)

Given some row major data, convert it to column major data.

Parameters

Returns

property record_type

The type for this record.

property column_values

The values for this record.

property data

The values for this record.

property binary_data

The binary encoded values for this record.

property json_data_string

The stringified JSON encoded values for this record.

keys()

Return a list of the column names of the record.

values()

Return a list of the values of the record.

insert_record(gpudb, table_name, encoding=‘binary’, options=None)

Insert this record into GPUdb.

Parameters

Returns