Class AlterTableDropVectorize
java.lang.Object
com.datastax.astra.client.tables.commands.AlterTableDropVectorize
- All Implemented Interfaces:
AlterTableOperation
Represents an operation to drop vectorized columns from a table in a database schema alteration.
Implements the
AlterTableOperation
interface to specify the "dropVectorize" operation.
This class supports specifying columns to drop and an optional "IF EXISTS" clause to ensure the operation only proceeds if the specified columns exist.
Example usage:
AlterTableDropVectorize dropVectorize = new AlterTableDropVectorize("column1", "column2")
.ifExists()
.columns("column3");
-
Constructor Summary
ConstructorDescriptionDefault constructor.AlterTableDropVectorize
(String... name) Constructs a newAlterTableDropVectorize
instance with the specified column names.AlterTableDropVectorize
(Set<String> columns) Constructs a newAlterTableDropVectorize
instance with the specified set of column names. -
Method Summary
Modifier and TypeMethodDescriptionAdds additional column names to the list of columns to drop.Returns the name of this operation, which is "dropVectorize".
-
Constructor Details
-
AlterTableDropVectorize
public AlterTableDropVectorize()Default constructor. Creates an emptyAlterTableDropVectorize
instance. -
AlterTableDropVectorize
Constructs a newAlterTableDropVectorize
instance with the specified column names.- Parameters:
name
- the names of the columns to drop
-
AlterTableDropVectorize
Constructs a newAlterTableDropVectorize
instance with the specified set of column names.- Parameters:
columns
- the set of column names to drop
-
-
Method Details
-
columns
Adds additional column names to the list of columns to drop.- Parameters:
columns
- the names of the columns to add- Returns:
- this
AlterTableDropVectorize
instance
-
getOperationName
Returns the name of this operation, which is "dropVectorize".- Specified by:
getOperationName
in interfaceAlterTableOperation
- Returns:
- the operation name
-