public static final class AlterTableRequest.Action extends Object
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.
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'.
PROTECTED
: Sets
whether the given tableName
should be protected or not. The
value
must be either 'true' or 'false'.
TTL
: Sets the TTL of the table, view, or collection specified in tableName
. The value
must be the desired TTL in minutes.
ADD_COLUMN
: Add
a column value
to the table. set the column properties in
options
DELETE_COLUMN
: Delete a column value
from the table
CHANGE_COLUMN
: Change properties of a column value
in the
table. set the column properties in options
RENAME_TABLE
:
Rename a table, view or collection to value
. Has the same naming
restrictions as tables.
action
.Modifier and Type | Field and Description |
---|---|
static String |
ADD_COLUMN
Add a column
value to the table. |
static String |
ALLOW_HOMOGENEOUS_TABLES
Sets whether homogeneous tables are allowed in the given collection.
|
static String |
CHANGE_COLUMN
Change properties of a column
value in the table. |
static String |
CREATE_INDEX
Creates an index on the column name specified in
value . |
static String |
DELETE_COLUMN
Delete a column
value from the table |
static String |
DELETE_INDEX
Deletes an existing index on the column name specified in
value . |
static String |
PROTECTED
Sets whether the given
tableName should be protected or not. |
static String |
RENAME_TABLE
Rename a table, view or collection to
value . |
static String |
TTL
Sets the TTL of the table, view, or collection specified in
tableName . |
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 ALLOW_HOMOGENEOUS_TABLES
tableName
is a collection. The
value
must be either 'true' or 'false'.public static final String PROTECTED
tableName
should be protected or not.
The value
must be either 'true' or 'false'.public static final String TTL
tableName
. The value
must be the desired TTL in minutes.public static final String ADD_COLUMN
value
to the table. set the column properties
in optionspublic static final String DELETE_COLUMN
value
from the tablepublic static final String CHANGE_COLUMN
value
in the table. set the
column properties in optionspublic static final String RENAME_TABLE
value
. Has the same
naming restrictions as tables.Copyright © 2017. All rights reserved.