Package com.gpudb.protocol
Class AlterTableRequest.Action
- java.lang.Object
-
- com.gpudb.protocol.AlterTableRequest.Action
-
- Enclosing class:
- AlterTableRequest
public static final class AlterTableRequest.Action extends Object
A set of string constants for theAlterTableRequestparameteraction.Modification operation to be applied
-
-
Field Summary
Fields Modifier and Type Field Description static StringADD_COLUMNstatic StringADD_COMMENTstatic StringADD_PARTITIONAdds the partition specified invalue, to either a range-partitioned or manual list-partitioned table.static StringCANCEL_DATASOURCE_SUBSCRIPTIONPermanently unsubscribe a data source that is loading continuously as a stream.static StringCHANGE_COLUMNChanges type and properties of the column specified invalue.static StringCHANGE_OWNERChange the owner resource group of the table.static StringCREATE_FOREIGN_KEYCreates a foreign key specified invalueusing the format '(source_column_name [, ...]) references target_table_name(primary_key_column_name [, ...])static StringCREATE_INDEXCreates a column (attribute) index, low-cardinality index, chunk skip index, geospatial index, CAGRA index, or HNSW index (depending on the specifiedINDEX_TYPE), on the column name specified invalue.static StringDELETE_COLUMNstatic StringDELETE_FOREIGN_KEYDeletes a foreign key.static StringDELETE_INDEXDeletes a column (attribute) index, low-cardinality index, chunk skip index, geospatial index, CAGRA index, or HNSW index (depending on the specifiedINDEX_TYPE), on the column name specified invalue.static StringDELETE_PARTITIONDeletes the partition specified invalue(and all of its data) from either a range-partitioned or manual list-partitioned table.static StringDROP_DATASOURCE_SUBSCRIPTIONPermanently delete a cancelled data source subscription.static StringMOVE_TO_COLLECTION[DEPRECATED--please useMOVE_TO_SCHEMAand useGPUdb.createSchemato create the schema if non-existent] Moves a table or view into a schema namedvalue.static StringMOVE_TO_SCHEMAMoves a table or view into a schema namedvalue.static StringPAUSE_DATASOURCE_SUBSCRIPTIONTemporarily unsubscribe a data source that is loading continuously as a stream.static StringPROTECTEDNo longer used.static StringREFRESHFor a materialized view, replays all the table creation commands required to create the view.static StringREFRESH_INDEXRefreshes an index identified byINDEX_TYPE, on the column name specified invalue.static StringREMOVE_PARTITIONRemoves the partition specified invalue(and relocates all of its data to the default partition) from either a range-partitioned or manual list-partitioned table.static StringREMOVE_SHARD_KEYSRemoves the shard key property from all columns, so that the table will be considered randomly sharded.static StringREMOVE_TEXT_SEARCH_ATTRIBUTESRemoves text search attribute from all columns.static StringRENAME_TABLERenames a table or view tovalue.static StringRESUME_DATASOURCE_SUBSCRIPTIONResubscribe to a paused data source subscription.static StringSET_BUILD_MATERIALIZED_VIEW_POLICYSet startup rebuilding scheme for the materialized view; see description of 'build_materialized_view_policy' inGPUdb.createMaterializedViewfor possible values forvaluestatic StringSET_BUILD_PK_INDEX_POLICYSet startup primary key generation scheme for the table; see description of 'build_pk_index_policy' inGPUdb.createTablefor possible values forvaluestatic StringSET_GLOBAL_ACCESS_MODESets the global access mode (i.e. locking) for the table specified intableName.static StringSET_LOAD_VECTORS_POLICYSet startup data loading scheme for the table; see description of 'load_vectors_policy' inGPUdb.createTablefor possible values forvaluestatic StringSET_REFRESH_EXECUTE_ASSets the user name to refresh this materialized view to the value specified invalue.static StringSET_REFRESH_METHODFor a materialized view, sets the method by which the view is refreshed to the method specified invalue- one of 'manual', 'periodic', or 'on_change'.static StringSET_REFRESH_PERIODSets the time interval in seconds at which to refresh this materialized view to the value specified invalue.static StringSET_REFRESH_SPANSets the future time-offset(in seconds) for the view refresh to stop.static StringSET_REFRESH_START_TIMESets the time to start periodic refreshes of this materialized view to the datetime string specified invaluewith format 'YYYY-MM-DD HH:MM:SS'.static StringSET_REFRESH_STOP_TIMESets the time to stop periodic refreshes of this materialized view to the datetime string specified invaluewith format 'YYYY-MM-DD HH:MM:SS'.static StringSET_STRATEGY_DEFINITIONSets the tier strategy for the table and its columns to the one specified invalue, replacing the existing tier strategy in its entirety.static StringTTLSets the time-to-live in minutes of the table or view specified intableName.
-
-
-
Field Detail
-
CREATE_INDEX
public static final String CREATE_INDEX
Creates a column (attribute) index, low-cardinality index, chunk skip index, geospatial index, CAGRA index, or HNSW index (depending on the specifiedINDEX_TYPE), on the column name specified invalue. If this column already has the specified index, an error will be returned.- See Also:
- Constant Field Values
-
REFRESH_INDEX
public static final String REFRESH_INDEX
Refreshes an index identified byINDEX_TYPE, on the column name specified invalue. Currently applicable only to CAGRA indices.- See Also:
- Constant Field Values
-
DELETE_INDEX
public static final String DELETE_INDEX
Deletes a column (attribute) index, low-cardinality index, chunk skip index, geospatial index, CAGRA index, or HNSW index (depending on the specifiedINDEX_TYPE), on the column name specified invalue. If this column does not have the specified index, an error will be returned.- See Also:
- Constant Field Values
-
MOVE_TO_COLLECTION
public static final String MOVE_TO_COLLECTION
[DEPRECATED--please useMOVE_TO_SCHEMAand useGPUdb.createSchemato create the schema if non-existent] Moves a table or view into a schema namedvalue. If the schema provided is non-existent, it will be automatically created.- See Also:
- Constant Field Values
-
MOVE_TO_SCHEMA
public static final String MOVE_TO_SCHEMA
Moves a table or view into a schema namedvalue. If the schema provided is nonexistent, an error will be thrown. Ifvalueis empty, then the table or view will be placed in the user's default schema.- See Also:
- Constant Field Values
-
PROTECTED
public static final String PROTECTED
No longer used. Previously set whether the giventableNameshould be protected or not. Thevaluewould have been either 'true' or 'false'.- See Also:
- Constant Field Values
-
RENAME_TABLE
public static final String RENAME_TABLE
- See Also:
- Constant Field Values
-
TTL
public static final String TTL
Sets the time-to-live in minutes of the table or view specified intableName.- See Also:
- Constant Field Values
-
ADD_COMMENT
public static final String ADD_COMMENT
Adds the comment specified invalueto the table specified intableName. UseCOLUMN_NAMEto set the comment for a column.- See Also:
- Constant Field Values
-
ADD_COLUMN
public static final String ADD_COLUMN
Adds the column specified invalueto the table specified intableName. UseCOLUMN_TYPEandCOLUMN_PROPERTIESinoptionsto set the column's type and properties, respectively.- See Also:
- Constant Field Values
-
CHANGE_COLUMN
public static final String CHANGE_COLUMN
Changes type and properties of the column specified invalue. UseCOLUMN_TYPEandCOLUMN_PROPERTIESinoptionsto 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 theoptionsmap.- See Also:
- Constant Field Values
-
DELETE_COLUMN
public static final String DELETE_COLUMN
- See Also:
- Constant Field Values
-
CREATE_FOREIGN_KEY
public static final String CREATE_FOREIGN_KEY
Creates a foreign key specified invalueusing the format '(source_column_name [, ...]) references target_table_name(primary_key_column_name [, ...]) [as foreign_key_name]'.- See Also:
- Constant Field Values
-
DELETE_FOREIGN_KEY
public static final String DELETE_FOREIGN_KEY
Deletes a foreign key. Thevalueshould be the foreign_key_name specified when creating the key or the complete string used to define it.- See Also:
- Constant Field Values
-
ADD_PARTITION
public static final String ADD_PARTITION
Adds the partition specified invalue, to either a range-partitioned or manual list-partitioned table.- See Also:
- Constant Field Values
-
REMOVE_PARTITION
public static final String REMOVE_PARTITION
Removes the partition specified invalue(and relocates all of its data to the default partition) from either a range-partitioned or manual list-partitioned table.- See Also:
- Constant Field Values
-
DELETE_PARTITION
public static final String DELETE_PARTITION
Deletes the partition specified invalue(and all of its data) from either a range-partitioned or manual list-partitioned table.- See Also:
- Constant Field Values
-
SET_GLOBAL_ACCESS_MODE
public static final String SET_GLOBAL_ACCESS_MODE
Sets the global access mode (i.e. locking) for the table specified intableName. Specify the access mode invalue. Valid modes are 'no_access', 'read_only', 'write_only' and 'read_write'.- See Also:
- Constant Field Values
-
REFRESH
public static final String 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.- See Also:
- Constant Field Values
-
SET_REFRESH_METHOD
public static final String SET_REFRESH_METHOD
For a materialized view, sets the method by which the view is refreshed to the method specified invalue- one of 'manual', 'periodic', or 'on_change'. For an external table, sets the method by which the table is refreshed to the method specified invalue- either 'manual' or 'on_start'.- See Also:
- Constant Field Values
-
SET_REFRESH_START_TIME
public static final String SET_REFRESH_START_TIME
Sets the time to start periodic refreshes of this materialized view to the datetime string specified invaluewith format 'YYYY-MM-DD HH:MM:SS'. Subsequent refreshes occur at the specified time + N * the refresh period.- See Also:
- Constant Field Values
-
SET_REFRESH_STOP_TIME
public static final String SET_REFRESH_STOP_TIME
Sets the time to stop periodic refreshes of this materialized view to the datetime string specified invaluewith format 'YYYY-MM-DD HH:MM:SS'.- See Also:
- Constant Field Values
-
SET_REFRESH_PERIOD
public static final String SET_REFRESH_PERIOD
Sets the time interval in seconds at which to refresh this materialized view to the value specified invalue. Also, sets the refresh method to periodic if not already set.- See Also:
- Constant Field Values
-
SET_REFRESH_SPAN
public static final String SET_REFRESH_SPAN
Sets the future time-offset(in seconds) for the view refresh to stop.- See Also:
- Constant Field Values
-
SET_REFRESH_EXECUTE_AS
public static final String SET_REFRESH_EXECUTE_AS
Sets the user name to refresh this materialized view to the value specified invalue.- See Also:
- Constant Field Values
-
REMOVE_TEXT_SEARCH_ATTRIBUTES
public static final String REMOVE_TEXT_SEARCH_ATTRIBUTES
Removes text search attribute from all columns.- See Also:
- Constant Field Values
-
REMOVE_SHARD_KEYS
public static final String 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. Thevalueis ignored.- See Also:
- Constant Field Values
-
SET_STRATEGY_DEFINITION
public static final String SET_STRATEGY_DEFINITION
Sets the tier strategy for the table and its columns to the one specified invalue, replacing the existing tier strategy in its entirety.- See Also:
- Constant Field Values
-
CANCEL_DATASOURCE_SUBSCRIPTION
public static final String CANCEL_DATASOURCE_SUBSCRIPTION
Permanently unsubscribe a data source that is loading continuously as a stream. The data source can be Kafka / S3 / Azure.- See Also:
- Constant Field Values
-
DROP_DATASOURCE_SUBSCRIPTION
public static final String DROP_DATASOURCE_SUBSCRIPTION
Permanently delete a cancelled data source subscription.- See Also:
- Constant Field Values
-
PAUSE_DATASOURCE_SUBSCRIPTION
public static final String PAUSE_DATASOURCE_SUBSCRIPTION
Temporarily unsubscribe a data source that is loading continuously as a stream. The data source can be Kafka / S3 / Azure.- See Also:
- Constant Field Values
-
RESUME_DATASOURCE_SUBSCRIPTION
public static final String RESUME_DATASOURCE_SUBSCRIPTION
Resubscribe to a paused data source subscription. The data source can be Kafka / S3 / Azure.- See Also:
- Constant Field Values
-
CHANGE_OWNER
public static final String CHANGE_OWNER
Change the owner resource group of the table.- See Also:
- Constant Field Values
-
SET_LOAD_VECTORS_POLICY
public static final String SET_LOAD_VECTORS_POLICY
Set startup data loading scheme for the table; see description of 'load_vectors_policy' inGPUdb.createTablefor possible values forvalue- See Also:
- Constant Field Values
-
SET_BUILD_PK_INDEX_POLICY
public static final String SET_BUILD_PK_INDEX_POLICY
Set startup primary key generation scheme for the table; see description of 'build_pk_index_policy' inGPUdb.createTablefor possible values forvalue- See Also:
- Constant Field Values
-
SET_BUILD_MATERIALIZED_VIEW_POLICY
public static final String SET_BUILD_MATERIALIZED_VIEW_POLICY
Set startup rebuilding scheme for the materialized view; see description of 'build_materialized_view_policy' inGPUdb.createMaterializedViewfor possible values forvalue- See Also:
- Constant Field Values
-
-