public static final class AlterTableRequest.Action extends Object
ALLOW_HOMOGENEOUS_TABLES
: No longer supported; action will be ignored.
CREATE_INDEX
:
Creates either a column (attribute) index or chunk skip index, depending on the specified index_type
, on the column name specified in value
. If this
column already has the specified index, an error will be returned.
DELETE_INDEX
:
Deletes either a column (attribute) index or chunk skip index, depending on the specified index_type
, on the column name specified in value
. If this
column does not have the specified index, an error will be returned.
MOVE_TO_COLLECTION
: Moves a table or view into a collection named
value
. If the collection provided is non-existent, the
collection will be automatically created. If value
is empty,
then the table or view will be top-level.
PROTECTED
: Sets
whether the given tableName
should be protected or not. The value
must be either
'true' or 'false'.
RENAME_TABLE
:
Renames a table, view or collection to value
. Has the same
naming restrictions as tables.
TTL
: Sets the time-to-live in minutes of the table, view, or
collection specified in tableName
.
ADD_COLUMN
: Adds
the column specified in value
to the table specified in tableName
. Use column_type
and column_properties
in
options
to set the column's type and properties, respectively.
CHANGE_COLUMN
: Changes type and properties of the column specified in
value
. Use column_type
and column_properties
in
options
to set the column's type and properties, respectively.
Note that primary key and/or shard key columns cannot be changed. All
unchanging column properties must be listed for the change to take
place, e.g., to add dictionary encoding to an existing 'char4' column,
both 'char4' and 'dict' must be specified in the options
map.
SET_COLUMN_COMPRESSION
: Modifies the compression setting on the column specified in value
to the compression type specified in compression_type
.
DELETE_COLUMN
: Deletes the column specified in value
from the
table specified in tableName
.
CREATE_FOREIGN_KEY
: Creates a foreign key specified in value
using the
format '(source_column_name [, ...]) references
target_table_name(primary_key_column_name [, ...]) [as
foreign_key_name]'.
DELETE_FOREIGN_KEY
: Deletes a foreign key. The value
should be the
foreign_key_name specified when creating the key or the complete string
used to define it.
ADD_PARTITION
: Adds the partition specified in value
, to either
a range-partitioned or manual list-partitioned table.
REMOVE_PARTITION
: Removes the partition specified in value
(and
relocates all of its data to the default partition) from either a range-partitioned or manual list-partitioned table.
DELETE_PARTITION
: Deletes the partition specified in value
(and
all of its data) from either a range-partitioned or manual list-partitioned table.
SET_GLOBAL_ACCESS_MODE
: Sets the global access mode (i.e. locking) for
the table specified in tableName
. Specify the access mode in
value
. Valid modes are 'no_access', 'read_only', 'write_only'
and 'read_write'.
REFRESH
: Replays all the table creation commands required to create
this materialized view.
SET_REFRESH_METHOD
: Sets the method by which this materialized view is refreshed to the method specified
in value
- one of 'manual', 'periodic', 'on_change'.
SET_REFRESH_START_TIME
: Sets the time to start periodic refreshes of
this materialized view to the datetime string specified in
value
with format 'YYYY-MM-DD HH:MM:SS'. Subsequent refreshes
occur at the specified time + N * the refresh period.
SET_REFRESH_PERIOD
: Sets the time interval in seconds at which to
refresh this materialized view to the value specified in value
. Also, sets the refresh method to periodic if not already set.
REMOVE_TEXT_SEARCH_ATTRIBUTES
: Removes text
search attribute from all columns.
SET_STRATEGY_DEFINITION
: Sets the tier strategy for the table and its columns to the one
specified in value
, replacing the existing tier strategy in its
entirety. See tier strategy usage for format and tier
strategy examples for examples.
action
.Modifier and Type | Field and Description |
---|---|
static String |
ADD_COLUMN
Adds the column specified in
value to the table specified in
tableName . |
static String |
ADD_PARTITION
Adds the partition specified in
value , to either a range-partitioned or manual list-partitioned table. |
static String |
ALLOW_HOMOGENEOUS_TABLES
No longer supported; action will be ignored.
|
static String |
CHANGE_COLUMN
Changes type and properties of the column specified in
value . |
static String |
CREATE_FOREIGN_KEY
Creates a foreign key specified in
value using the
format '(source_column_name [, ...]) references
target_table_name(primary_key_column_name [, ...]) [as
foreign_key_name]'. |
static String |
CREATE_INDEX
Creates either a column (attribute) index or chunk skip index, depending on the specified
index_type , on the column name specified in value . |
static String |
DELETE_COLUMN
Deletes the column specified in
value from the table
specified in tableName . |
static String |
DELETE_FOREIGN_KEY
Deletes a foreign key.
|
static String |
DELETE_INDEX
Deletes either a column (attribute) index or chunk skip index, depending on the specified
index_type , on the column name specified in value . |
static String |
DELETE_PARTITION
Deletes the partition specified in
value (and all of its
data) from either a range-partitioned or manual list-partitioned table. |
static String |
MOVE_TO_COLLECTION
Moves a table or view into a collection named
value . |
static String |
PROTECTED
Sets whether the given
tableName should be protected or not. |
static String |
REFRESH
Replays all the table creation commands required to create this materialized view.
|
static String |
REMOVE_PARTITION
Removes the partition specified in
value (and relocates all
of its data to the default partition) from either a range-partitioned or manual list-partitioned table. |
static String |
REMOVE_TEXT_SEARCH_ATTRIBUTES
Removes text search attribute from all columns.
|
static String |
RENAME_TABLE
Renames a table, view or collection to
value . |
static String |
SET_COLUMN_COMPRESSION
Modifies the compression setting on the column specified in
value to the compression type specified in compression_type . |
static String |
SET_GLOBAL_ACCESS_MODE
Sets the global access mode (i.e.
|
static String |
SET_REFRESH_METHOD
Sets the method by which this materialized view is refreshed to the method
specified in
value - one of 'manual', 'periodic',
'on_change'. |
static String |
SET_REFRESH_PERIOD
Sets the time interval in seconds at which to refresh this materialized view to the value specified in
value . |
static String |
SET_REFRESH_START_TIME
Sets the time to start periodic refreshes of this materialized view to the datetime string specified
in
value with format 'YYYY-MM-DD HH:MM:SS'. |
static String |
SET_STRATEGY_DEFINITION
Sets the tier strategy for the table and its columns to the
one specified in
value , replacing the existing tier strategy
in its entirety. |
static String |
TTL
Sets the time-to-live in minutes of the table, view, or
collection specified in
tableName . |
public static final String ALLOW_HOMOGENEOUS_TABLES
public static final String CREATE_INDEX
index_type
, on the column name specified in value
.
If this column already has the specified index, an error will be
returned.public static final String DELETE_INDEX
index_type
, on the column name specified in value
.
If this column does not have the specified index, an error will be
returned.public static final String MOVE_TO_COLLECTION
value
. If the
collection provided is non-existent, the collection will be
automatically created. If value
is empty, then the table or
view will be top-level.public static final String PROTECTED
tableName
should be protected or not. The value
must be either
'true' or 'false'.public static final String RENAME_TABLE
value
. Has the same
naming restrictions as tables.public static final String TTL
tableName
.public static final String ADD_COLUMN
value
to the table specified in
tableName
. Use column_type
and column_properties
in options
to set the column's type and
properties, respectively.public static final String CHANGE_COLUMN
value
. Use column_type
and column_properties
in
options
to set the column's type and properties,
respectively. Note that primary key and/or shard key columns cannot
be changed. All unchanging column properties must be listed for the
change to take place, e.g., to add dictionary encoding to an
existing 'char4' column, both 'char4' and 'dict' must be specified
in the options
map.public static final String SET_COLUMN_COMPRESSION
value
to the compression type specified in compression_type
.public static final String DELETE_COLUMN
value
from the table
specified in tableName
.public static final String CREATE_FOREIGN_KEY
value
using the
format '(source_column_name [, ...]) references
target_table_name(primary_key_column_name [, ...]) [as
foreign_key_name]'.public static final String DELETE_FOREIGN_KEY
value
should be the
foreign_key_name specified when creating the key or the complete
string used to define it.public static final String ADD_PARTITION
value
, to either a range-partitioned or manual list-partitioned table.public static final String REMOVE_PARTITION
value
(and relocates all
of its data to the default partition) from either a range-partitioned or manual list-partitioned table.public static final String DELETE_PARTITION
value
(and all of its
data) from either a range-partitioned or manual list-partitioned table.public static final String SET_GLOBAL_ACCESS_MODE
tableName
. Specify the access mode in value
.
Valid modes are 'no_access', 'read_only', 'write_only' and
'read_write'.public static final String REFRESH
public static final String SET_REFRESH_METHOD
value
- one of 'manual', 'periodic',
'on_change'.public static final String SET_REFRESH_START_TIME
value
with format 'YYYY-MM-DD HH:MM:SS'. Subsequent
refreshes occur at the specified time + N * the refresh period.public static final String SET_REFRESH_PERIOD
value
. Also, sets the refresh method to periodic if not already
set.public static final String REMOVE_TEXT_SEARCH_ATTRIBUTES
public static final String SET_STRATEGY_DEFINITION
value
, replacing the existing tier strategy
in its entirety. See tier strategy usage for format and tier strategy examples for examples.Copyright © 2020. All rights reserved.