public static final class AlterTableRequest.Action extends Object
ALLOW_HOMOGENEOUS_TABLES
: No longer supported; action will be ignored.
CREATE_INDEX
:
Creates a column (attribute) index,
chunk skip index, or
geospatial 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 a column (attribute) index,
chunk skip index, or
geospatial 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
: [DEPRECATED--please use move_to_schema
and
use GPUdb.createSchema(CreateSchemaRequest)
to create
the schema if non-existent] Moves a table or view into a schema named
value
. If the schema provided is non-existent, it will be
automatically created.
MOVE_TO_SCHEMA
: Moves a table or view into a schema named value
.
If the schema provided is nonexistent, an error will be thrown.
If value
is empty, then the table or view will be placed in the
user's default schema.
PROTECTED
: No
longer used. Previously set whether the given tableName
should
be protected or not. The value
would have been either 'true' or
'false'.
RENAME_TABLE
:
Renames a table or view within its current schema to value
. Has
the same naming restrictions as tables.
TTL
: Sets the time-to-live in minutes of the table or view 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
: No longer supported; action will be ignored.
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
: For a materialized view, replays all the table creation
commands required to create the view. For an external table, reloads all data in the table from its
associated source files or data
source.
SET_REFRESH_METHOD
: For a materialized view, sets the method by which the view
is refreshed to the method specified in value
- one of 'manual',
'periodic', or 'on_change'. For an external table, sets the method by which the table is
refreshed to the method specified in value
- either 'manual' or
'on_start'.
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_STOP_TIME
: Sets the time to stop periodic refreshes of this
materialized view to the datetime string specified in
value
with format 'YYYY-MM-DD HH:MM:SS'.
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.
SET_REFRESH_SPAN
: Sets the future time-offset(in seconds) for the view
refresh to stop.
SET_REFRESH_EXECUTE_AS
: Sets the user name to refresh this materialized view to the value specified in value
.
REMOVE_TEXT_SEARCH_ATTRIBUTES
: Removes text
search attribute from all columns.
REMOVE_SHARD_KEYS
: Removes the shard key property from all columns, so
that the table will be considered randomly sharded. The data is not
moved. The value
is ignored.
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.
CANCEL_DATASOURCE_SUBSCRIPTION
: Permanently unsubscribe a data source
that is loading continuously as a stream. The data source can be Kafka /
S3 / Azure.
PAUSE_DATASOURCE_SUBSCRIPTION
: Temporarily unsubscribe a data source
that is loading continuously as a stream. The data source can be Kafka /
S3 / Azure.
RESUME_DATASOURCE_SUBSCRIPTION
: Resubscribe to a paused data source
subscription. The data source can be Kafka / S3 / Azure.
CHANGE_OWNER
:
Change the owner resource group of the table.
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
static String ALLOW_HOMOGENEOUS_TABLES
No longer supported; action will be ignored.
| ||||||
static String |
CANCEL_DATASOURCE_SUBSCRIPTION
Permanently unsubscribe a data source that is loading continuously
as a stream.
|
||||||
static String |
CHANGE_COLUMN
Changes type and properties of the column specified in
value . |
||||||
static String |
CHANGE_OWNER
Change the owner resource group of the table.
|
||||||
static String |
CREATE_FOREIGN_KEY
Creates a
static String CREATE_INDEX
Creates a
static String DELETE_COLUMN
Deletes the column specified in
value from the table
specified in tableName . | ||||||
static String |
DELETE_FOREIGN_KEY
Deletes a
static String DELETE_INDEX
Deletes a
static String DELETE_PARTITION
Deletes the partition specified in value (and all of its
data) from either a
static String MOVE_TO_COLLECTION
[DEPRECATED--please use
move_to_schema and use GPUdb.createSchema(CreateSchemaRequest) to create the
schema if non-existent] Moves a table or view into a schema named
value . | ||||||
static String |
MOVE_TO_SCHEMA
Moves a table or view into a schema named
value . |
||||||
static String |
PAUSE_DATASOURCE_SUBSCRIPTION
Temporarily unsubscribe a data source that is loading continuously
as a stream.
|
||||||
static String |
PROTECTED
No longer used.
|
||||||
static String |
REFRESH
For a
static String REMOVE_PARTITION
Removes the partition specified in value (and relocates all
of its data to the default partition) from either a
static String REMOVE_SHARD_KEYS
Removes the shard key property from all columns, so that the table
will be considered randomly sharded.
| ||||||
static String |
REMOVE_TEXT_SEARCH_ATTRIBUTES
| ||||||
static String |
RESUME_DATASOURCE_SUBSCRIPTION
Resubscribe to a paused data source subscription.
|
||||||
static String |
SET_COLUMN_COMPRESSION
No longer supported; action will be ignored.
|
||||||
static String |
SET_GLOBAL_ACCESS_MODE
Sets the global access mode (i.e. locking) for the table specified
in
tableName . |
||||||
static String |
SET_REFRESH_EXECUTE_AS
Sets the user name to refresh this
static String SET_REFRESH_METHOD
For a
static String SET_REFRESH_PERIOD
Sets the time interval in seconds at which to refresh this
static String SET_REFRESH_SPAN
Sets the future time-offset(in seconds) for the view refresh to
stop.
| ||||||
static String |
SET_REFRESH_START_TIME
Sets the time to start periodic refreshes of this
static String SET_REFRESH_STOP_TIME
Sets the time to stop periodic refreshes of this
static String SET_STRATEGY_DEFINITION
Sets the
static String TTL
Sets the
Method Summary
Copyright © 2024. All rights reserved. |