public static final class InsertRecordsFromFilesRequest.CreateTableOptions extends Object
GPUdb.createTable(CreateTableRequest),
allowing the structure of the table to
be defined independently of the data source, when creating the target
table
TYPE_ID: ID of a currently registered type.
NO_ERROR_IF_EXISTS: If true,
prevents an error from occurring if the table already exists and is of
the given type. If a table with
the same name but a different type exists, it is still an error.
Supported values:
The default value is FALSE.
IS_REPLICATED: Affects the distribution scheme
for the table's data. If true and the
given table has no explicit shard
key defined, the
table will be replicated. If
false, the table will be
sharded according to the shard key specified in the
given type_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 is FALSE.
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]'.
FOREIGN_SHARD_KEY: Foreign shard key of the format
'source_column references shard_by_column from
target_table(primary_key_column)'.
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.
PARTITION_KEYS: Comma-separated list of partition keys, which are the
columns or
column expressions by which records will be assigned to partitions
defined by
partition_definitions.
PARTITION_DEFINITIONS: Comma-separated list of partition definitions,
whose format depends
on the choice of partition_type. See
range partitioning,
interval partitioning,
list partitioning,
hash partitioning, or
series partitioning for example formats.
IS_AUTOMATIC_PARTITION: If true,
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 is FALSE.
TTL: Sets the TTL of the table specified in tableName.
CHUNK_SIZE: Indicates the number of records per chunk to be used for
this table.
IS_RESULT_TABLE: Indicates whether the table is a
memory-only table. A result table cannot contain
columns with
store_only or text_search data-handling or that are
non-charN strings, and it will not be retained if the
server is restarted.
Supported values:
The default value is FALSE.
STRATEGY_DEFINITION: The tier
strategy
for the table and its columns.
Map.
A set of string constants for the parameter createTableOptions.| Modifier and Type | Field and Description | ||||||
|---|---|---|---|---|---|---|---|
static String |
CHUNK_SIZE
Indicates the number of records per chunk to be used for this table.
|
||||||
static String |
FALSE |
||||||
static String |
FOREIGN_KEYS
Semicolon-separated list of
static StringFOREIGN_SHARD_KEY
Foreign shard key of the format
'source_column references shard_by_column from
target_table(primary_key_column)'.
| ||||||
static String |
HASH
Use
static StringINTERVAL
Use
static StringIS_AUTOMATIC_PARTITION
If
true,
a new partition will be created for values which don't fall into an
existing partition. | ||||||
static String |
IS_REPLICATED
Affects the
static StringIS_RESULT_TABLE
Indicates whether the table is a
static StringLIST
Use
static StringNO_ERROR_IF_EXISTS
If
true,
prevents an error from occurring if the table already exists and is
of the given type. | ||||||
static String |
PARTITION_DEFINITIONS
Comma-separated list of partition definitions, whose format depends
on the choice of
partition_type. |
||||||
static 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 by
partition_definitions. |
||||||
static String |
PARTITION_TYPE
| ||||||
static String |
TTL
Sets the
static StringTYPE_ID
ID of a currently registered
Method Summary
Copyright © 2024. All rights reserved. |