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.-
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).