Package com.gpudb.protocol
Class CreateTableRequest.Options
- java.lang.Object
-
- com.gpudb.protocol.CreateTableRequest.Options
-
- Enclosing class:
- CreateTableRequest
public static final class CreateTableRequest.Options extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringALWAYSGenerate as much primary key index data as possible before accepting requests.static StringBUILD_PK_INDEX_POLICYSet startup primary-key index generation scheme for the table.static StringCHUNK_COLUMN_MAX_MEMORYIndicates the target maximum data size for each column in a chunk to be used for this table.static StringCHUNK_MAX_MEMORYIndicates the target maximum data size for all columns in a chunk to be used for this table.static StringCHUNK_SIZEIndicates the number of records per chunk to be used for this table.static StringCOLLECTION_NAME[DEPRECATED--please specify the containing schema as part oftableNameand useGPUdb.createSchemato create the schema if non-existent] Name of a schema which is to contain the newly created table.static StringCOMPRESSION_CODECThe default compression codec for this table's columns.static StringCREATE_TEMP_TABLEstatic StringFALSEstatic StringFOREIGN_KEYSSemicolon-separated list of foreign keys, of the format '(source_column_name [, ...]) references target_table_name(primary_key_column_name [, ...])static StringFOREIGN_SHARD_KEYForeign shard key of the format 'source_column references shard_by_column from target_table(primary_key_column)'.static StringHASHUse hash partitioning.static StringINTERVALstatic StringIS_AUTOMATIC_PARTITIONIfTRUE, a new partition will be created for values which don't fall into an existing partition.static StringIS_COLLECTION[DEPRECATED--please useGPUdb.createSchemato create a schema instead] Indicates whether to create a schema instead of a table.static StringIS_REPLICATEDAffects the distribution scheme for the table's data.static StringIS_RESULT_TABLEIndicates whether the table is a memory-only table.static StringLAZYGenerate the necessary primary key index data at start, and load the remainder lazily.static StringLISTUse list partitioning.static StringLOAD_VECTORS_POLICYSet startup data loading scheme for the table.static StringNO_ERROR_IF_EXISTSIfTRUE, prevents an error from occurring if the table already exists and is of the given type.static StringON_DEMANDGenerate primary key index data as requests use it.static StringPARTITION_DEFINITIONSComma-separated list of partition definitions, whose format depends on the choice ofPARTITION_TYPE.static StringPARTITION_KEYSComma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined byPARTITION_DEFINITIONS.static StringPARTITION_TYPEPartitioning scheme to use.static StringRANGEUse range partitioning.static StringSERIESUse series partitioning.static StringSTRATEGY_DEFINITIONThe tier strategy for the table and its columns.static StringSYSTEMGenerate primary key index data using the system-configured default.static StringTRUEstatic StringTTL
-
-
-
Field Detail
-
NO_ERROR_IF_EXISTS
public static final String NO_ERROR_IF_EXISTS
IfTRUE, prevents an error from occurring if the table already exists and is of the given type. If a table with the same ID but a different type exists, it is still an error. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
TRUE
public static final String TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final String FALSE
- See Also:
- Constant Field Values
-
CREATE_TEMP_TABLE
public static final String CREATE_TEMP_TABLE
IfTRUE, a unique temporary table name will be generated in the sys_temp schema and used in place oftableName. IfIS_RESULT_TABLEisTRUE, then this is always allowed even if the caller does not have permission to create tables. The generated name is returned inQUALIFIED_TABLE_NAME. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
COLLECTION_NAME
public static final String COLLECTION_NAME
[DEPRECATED--please specify the containing schema as part oftableNameand useGPUdb.createSchemato create the schema if non-existent] Name of a schema which is to contain the newly created table. If the schema is non-existent, it will be automatically created.- See Also:
- Constant Field Values
-
IS_COLLECTION
public static final String IS_COLLECTION
[DEPRECATED--please useGPUdb.createSchemato create a schema instead] Indicates whether to create a schema instead of a table. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
IS_REPLICATED
public static final String IS_REPLICATED
Affects the distribution scheme for the table's data. IfTRUEand the given type has no explicit shard key defined, the table will be replicated. IfFALSE, the table will be sharded according to the shard key specified in the giventypeId, or randomly sharded, if no shard key is specified. Note that a type containing a shard key cannot be used to create a replicated table. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
FOREIGN_KEYS
public static final String FOREIGN_KEYS
Semicolon-separated list of foreign keys, of the format '(source_column_name [, ...]) references target_table_name(primary_key_column_name [, ...]) [as foreign_key_name]'.- See Also:
- Constant Field Values
-
FOREIGN_SHARD_KEY
public static final String FOREIGN_SHARD_KEY
Foreign shard key of the format 'source_column references shard_by_column from target_table(primary_key_column)'.- See Also:
- Constant Field Values
-
PARTITION_TYPE
public static final String PARTITION_TYPE
Partitioning scheme to use. Supported values:RANGE: Use range partitioning.INTERVAL: Use interval partitioning.LIST: Use list partitioning.HASH: Use hash partitioning.SERIES: Use series partitioning.
- See Also:
- Constant Field Values
-
RANGE
public static final String RANGE
Use range partitioning.- See Also:
- Constant Field Values
-
INTERVAL
public static final String INTERVAL
- See Also:
- Constant Field Values
-
LIST
public static final String LIST
Use list partitioning.- See Also:
- Constant Field Values
-
HASH
public static final String HASH
Use hash partitioning.- See Also:
- Constant Field Values
-
SERIES
public static final String SERIES
Use series partitioning.- See Also:
- Constant Field Values
-
PARTITION_KEYS
public static final String PARTITION_KEYS
Comma-separated list of partition keys, which are the columns or column expressions by which records will be assigned to partitions defined byPARTITION_DEFINITIONS.- See Also:
- Constant Field Values
-
PARTITION_DEFINITIONS
public static final String PARTITION_DEFINITIONS
Comma-separated list of partition definitions, whose format depends on the choice ofPARTITION_TYPE. See range partitioning, interval partitioning, list partitioning, hash partitioning, or series partitioning for example formats.- See Also:
- Constant Field Values
-
IS_AUTOMATIC_PARTITION
public static final String IS_AUTOMATIC_PARTITION
IfTRUE, a new partition will be created for values which don't fall into an existing partition. Currently only supported for list partitions. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
TTL
public static final String TTL
- See Also:
- Constant Field Values
-
CHUNK_SIZE
public static final String CHUNK_SIZE
Indicates the number of records per chunk to be used for this table.- See Also:
- Constant Field Values
-
CHUNK_COLUMN_MAX_MEMORY
public static final String CHUNK_COLUMN_MAX_MEMORY
Indicates the target maximum data size for each column in a chunk to be used for this table.- See Also:
- Constant Field Values
-
CHUNK_MAX_MEMORY
public static final String CHUNK_MAX_MEMORY
Indicates the target maximum data size for all columns in a chunk to be used for this table.- See Also:
- Constant Field Values
-
IS_RESULT_TABLE
public static final String IS_RESULT_TABLE
Indicates whether the table is a memory-only table. A result table cannot contain columns with text_search data-handling, and it will not be retained if the server is restarted. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
STRATEGY_DEFINITION
public static final String STRATEGY_DEFINITION
The tier strategy for the table and its columns.- See Also:
- Constant Field Values
-
COMPRESSION_CODEC
public static final String COMPRESSION_CODEC
The default compression codec for this table's columns.- See Also:
- Constant Field Values
-
LOAD_VECTORS_POLICY
public static final String LOAD_VECTORS_POLICY
Set startup data loading scheme for the table. Supported values:ALWAYS: Load as much vector data as possible into memory before accepting requests.LAZY: Load the necessary vector data at start, and load the remainder lazily.ON_DEMAND: Load vector data as requests use it.SYSTEM: Load vector data using the system-configured default.
SYSTEM.- See Also:
- Constant Field Values
-
ALWAYS
public static final String ALWAYS
Generate as much primary key index data as possible before accepting requests.- See Also:
- Constant Field Values
-
LAZY
public static final String LAZY
Generate the necessary primary key index data at start, and load the remainder lazily.- See Also:
- Constant Field Values
-
ON_DEMAND
public static final String ON_DEMAND
Generate primary key index data as requests use it.- See Also:
- Constant Field Values
-
SYSTEM
public static final String SYSTEM
Generate primary key index data using the system-configured default.- See Also:
- Constant Field Values
-
BUILD_PK_INDEX_POLICY
public static final String BUILD_PK_INDEX_POLICY
Set startup primary-key index generation scheme for the table. Supported values:ALWAYS: Generate as much primary key index data as possible before accepting requests.LAZY: Generate the necessary primary key index data at start, and load the remainder lazily.ON_DEMAND: Generate primary key index data as requests use it.SYSTEM: Generate primary key index data using the system-configured default.
SYSTEM.- See Also:
- Constant Field Values
-
-