public static final class AlterTableRequest.Action extends Object
ALLOW_HOMOGENEOUS_TABLES
: Sets whether homogeneous tables are allowed
in the given collection. This action is only valid if tableName
is a collection. The value
must be either 'true' or 'false'.
CREATE_INDEX
:
Creates an index on the column name specified in value
.
If this column is already indexed, an error will be returned.
DELETE_INDEX
:
Deletes an existing index on the column name specified in value
.
If this column does not have indexing turned on, an error will be
returned.
MOVE_TO_COLLECTION
: Moves a table into a collection value
.
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
.
MEMORY_TTL
: Sets
the time-to-live in minutes for the individual chunks of the columns of
the table, view, or collection specified in tableName
to free
their memory if unused longer than the given time. Specify an empty
string to restore the global memory_ttl setting and a value of '-1' for
an infinite timeout.
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
.
DELETE_COLUMN
: Deletes the column specified in value
from the
table specified in tableName
.
CREATE_FOREIGN_KEY
: Creates a foreign key 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.
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 - one of 'manual',
'periodic', 'on_change'.
SET_REFRESH_START_TIME
: Sets the time to start periodic refreshes of
this materialized view to datetime string 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. Also, sets the refresh method to
periodic if not alreay set.
REMOVE_TEXT_SEARCH_ATTRIBUTES
: remove text_search attribute from all
columns, if exists.
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 |
ALLOW_HOMOGENEOUS_TABLES
Sets whether homogeneous tables are allowed in the given collection.
|
static String |
CHANGE_COLUMN
Changes type and properties of the column specified in
value . |
static String |
CREATE_FOREIGN_KEY
Creates a foreign key using the format '(source_column_name
[, ...]) references target_table_name(primary_key_column_name [,
...]) [as foreign_key_name]'.
|
static String |
CREATE_INDEX
Creates an index 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 an existing index on the column name specified in
value . |
static String |
MEMORY_TTL
Sets the time-to-live in minutes for the individual chunks of the
columns of the table, view, or collection specified in
tableName to free their memory if unused longer than the given
time. |
static String |
MOVE_TO_COLLECTION
Moves a table into a collection
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_TEXT_SEARCH_ATTRIBUTES
remove text_search attribute from all columns, if exists.
|
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 . |
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 - one of 'manual',
'periodic', 'on_change'.
|
static String |
SET_REFRESH_PERIOD
Sets the time interval in seconds at which to refresh this materialized view.
|
static String |
SET_REFRESH_START_TIME
Sets the time to start periodic refreshes of this materialized view to datetime string with format
'YYYY-MM-DD HH:MM:SS'.
|
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
tableName
is a collection. The
value
must be either 'true' or 'false'.public static final String CREATE_INDEX
value
. If this column is already indexed, an error will be
returned.public static final String DELETE_INDEX
value
. If this column does not have indexing turned on, an error
will be returned.public static final String MOVE_TO_COLLECTION
value
.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 MEMORY_TTL
tableName
to free their memory if unused longer than the given
time. Specify an empty string to restore the global memory_ttl
setting and a value of '-1' for an infinite timeout.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
.public static final String DELETE_COLUMN
value
from the table
specified in tableName
.public static final String CREATE_FOREIGN_KEY
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 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
public static final String SET_REFRESH_START_TIME
public static final String SET_REFRESH_PERIOD
public static final String REMOVE_TEXT_SEARCH_ATTRIBUTES
Copyright © 2019. All rights reserved.