Package com.gpudb.protocol
Class InsertRecordsFromPayloadRequest.CreateTableOptions
- java.lang.Object
-
- com.gpudb.protocol.InsertRecordsFromPayloadRequest.CreateTableOptions
-
- Enclosing class:
- InsertRecordsFromPayloadRequest
public static final class InsertRecordsFromPayloadRequest.CreateTableOptions extends Object
A set of string constants for theInsertRecordsFromPayloadRequestparametercreateTableOptions.Options used when creating the target table. Includes type to use. The other options match those in
GPUdb.createTable
-
-
Field Summary
Fields Modifier and Type Field Description 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 StringCOMPRESSION_CODECThe default compression codec for this table's columns.static 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_REPLICATEDAffects the distribution scheme for the table's data.static StringIS_RESULT_TABLEIndicates whether the table is a memory-only table.static StringLISTUse list partitioning.static StringNO_ERROR_IF_EXISTSIfTRUE, prevents an error from occurring if the table already exists and is of the given type.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 StringTRUEstatic StringTTLstatic StringTYPE_IDID of a currently registered type.
-
-
-
Field Detail
-
TYPE_ID
public static final String TYPE_ID
ID of a currently registered type. The default value is ''.- See Also:
- Constant Field Values
-
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
-
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 givenTYPE_ID, 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
-
-