public static final class AlterTableRequest.Options extends Object
ACTION
COLUMN_NAME
TABLE_NAME
COLUMN_DEFAULT_VALUE
: When adding a column, set a default value for
existing records. For nullable columns, the default value will be null,
regardless of data type.
COLUMN_PROPERTIES
: When adding or changing a column, set the column
properties (strings, separated by a comma: data, store_only,
text_search, char8, int8 etc).
COLUMN_TYPE
:
When adding or changing a column, set the column type (strings,
separated by a comma: int, double, string, null etc).
COMPRESSION_TYPE
: No longer supported; option will be ignored.
Supported values:
The default value is SNAPPY
.
COPY_VALUES_FROM_COLUMN
: [DEPRECATED--please use add_column_expression
instead.]
RENAME_COLUMN
: When changing a column, specify new column name.
VALIDATE_CHANGE_COLUMN
: When changing a column, validate the change
before applying it (or not).
Supported values:
TRUE
: Validate all values. A value too large (or too long) for the new
type will prevent any change.
FALSE
: When a value is too large or long, it will be truncated.
TRUE
.
UPDATE_LAST_ACCESS_TIME
: Indicates whether the time-to-live
(TTL) expiration countdown timer should be reset to the table's TTL.
Supported values:
TRUE
: Reset the expiration countdown timer to the table's configured
TTL.
FALSE
: Don't reset the timer; expiration countdown will continue from
where it is, as if the table had not been accessed.
TRUE
.
ADD_COLUMN_EXPRESSION
: When adding a column, an optional expression to
use for the new column's values. Any valid expression may be used,
including one containing references to existing columns in the same
table.
STRATEGY_DEFINITION
: Optional parameter for specifying the tier
strategy for the table and its columns when action
is set_strategy_definition
, replacing the existing tier strategy in its
entirety.
INDEX_TYPE
:
Type of index to create, when action
is create_index
,
or to delete, when action
is delete_index
.
Supported values:
COLUMN
: Create or delete a column (attribute) index.
CHUNK_SKIP
:
Create or delete a chunk skip index.
GEOSPATIAL
:
Create or delete a geospatial index
COLUMN
.
Map
.
A set of string constants for the parameter options
.Modifier and Type | Field and Description | ||||
---|---|---|---|---|---|
static String |
ACTION |
||||
static String |
ADD_COLUMN_EXPRESSION
When adding a column, an optional expression to use for the new
column's values.
|
||||
static String |
CHUNK_SKIP
Create or delete a
static String COLUMN
Create or delete a
static String COLUMN_DEFAULT_VALUE
When adding a column, set a default value for existing records.
| ||||
static String |
COLUMN_NAME |
||||
static String |
COLUMN_PROPERTIES
When adding or changing a column, set the column properties
(strings, separated by a comma: data, store_only, text_search,
char8, int8 etc).
|
||||
static String |
COLUMN_TYPE
When adding or changing a column, set the column type (strings,
separated by a comma: int, double, string, null etc).
|
||||
static String |
COMPRESSION_TYPE
No longer supported; option will be ignored.
|
||||
static String |
COPY_VALUES_FROM_COLUMN
[DEPRECATED--please use
add_column_expression instead.] |
||||
static String |
FALSE
Don't reset the timer; expiration countdown will continue from where
it is, as if the table had not been accessed.
|
||||
static String |
GEOSPATIAL
Create or delete a geospatial index
|
||||
static String |
INDEX_TYPE
Type of index to create, when
action is create_index ,
or to delete, when action is delete_index . |
||||
static String |
LZ4 |
||||
static String |
LZ4HC |
||||
static String |
NONE |
||||
static String |
RENAME_COLUMN
When changing a column, specify new column name.
|
||||
static String |
SNAPPY |
||||
static String |
STRATEGY_DEFINITION
| ||||
static String |
TRUE
Reset the expiration countdown timer to the table's configured TTL.
|
||||
static String |
UPDATE_LAST_ACCESS_TIME
Indicates whether the
static String VALIDATE_CHANGE_COLUMN
When changing a column, validate the change before applying it (or
not).
|
public static final String ACTION
public static final String COLUMN_NAME
public static final String TABLE_NAME
public static final String COLUMN_DEFAULT_VALUE
public static final String COLUMN_PROPERTIES
public static final String COLUMN_TYPE
public static final String COMPRESSION_TYPE
SNAPPY
.public static final String NONE
public static final String SNAPPY
public static final String LZ4
public static final String LZ4HC
public static final String COPY_VALUES_FROM_COLUMN
add_column_expression
instead.]public static final String RENAME_COLUMN
public static final String VALIDATE_CHANGE_COLUMN
TRUE
: Validate
all values. A value too large (or too long) for the new type will
prevent any change.
FALSE
: When a
value is too large or long, it will be truncated.
TRUE
.public static final String TRUE
public static final String FALSE
public static final String UPDATE_LAST_ACCESS_TIME
TRUE
: Reset the
expiration countdown timer to the table's configured TTL.
FALSE
: Don't
reset the timer; expiration countdown will continue from where it
is, as if the table had not been accessed.
TRUE
.public static final String ADD_COLUMN_EXPRESSION
public static final String STRATEGY_DEFINITION
action
is set_strategy_definition
, replacing the
existing tier strategy in its entirety.public static final String INDEX_TYPE
action
is create_index
,
or to delete, when action
is delete_index
.
Supported values:
COLUMN
: Create
or delete a column (attribute) index.
CHUNK_SKIP
:
Create or delete a chunk skip index.
GEOSPATIAL
:
Create or delete a geospatial index
COLUMN
.public static final String COLUMN
public static final String CHUNK_SKIP
public static final String GEOSPATIAL
Copyright © 2024. All rights reserved.