Class GPUdbTableOptions

class gpudb.GPUdbTableOptions(_dict=None)[source]

Bases: object

Encapsulates the various options used to create a table. The same object can be used on multiple tables and state modifications are chained together:

opts = GPUdbTableOptions.default().collection_name('coll_name')
table1 = Table( None, options = opts )
table2 = Table( None, options = opts.is_replicated( True ) )

Create a default set of options for create_table().

Parameters

_dict (dict) –
Optional dictionary with options already loaded.

Returns

A GPUdbTableOptions object.
as_json()[source]

Return the options as a JSON for using directly in create_table()

as_dict()[source]

Return the options as a dict for using directly in create_table()

collection_name(val)[source]

When creating a new table, sets the name of the collection which is to contain the table. If the collection specified is non-existent, the collection will be automatically created. If not specified, the newly created table will be a top-level table.

is_collection(val)[source]

When creating a new entity, sets whether the entity is a collection or a table (the default).

disallow_homogeneous_tables(val)[source]

When creating a new collection, sets whether the collection prohibits containment of multiple tables of exactly the same type.

is_replicated(val)[source]

When creating a new table, sets whether the table is replicated or or not (the default).

is_result_table(val)[source]

When creating a new table, sets whether the table is an in-memory table or not (the default). An in-memory cannot contain store-only, text-searchable, or unrestricted length string columns; and it will not be retained if the server is restarted.

is_automatic_partition(val)[source]

When creating a new table, sets whether the a new paritition will be created for values which don’t fall into any existing parition.