Skip to main content

Class GPUdbTableOptions

class gpudb.GPUdbTableOptions(_dict=None)

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

Returns

as_json()

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

as_dict()

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

collection_name(val)

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)

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

disallow_homogeneous_tables(val)

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

is_replicated(val)

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

is_result_table(val)

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)

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