Class AlterTableDropVectorize

java.lang.Object
com.datastax.astra.client.tables.commands.AlterTableDropVectorize
All Implemented Interfaces:
AlterTableOperation

public class AlterTableDropVectorize extends Object implements 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 Details

    • AlterTableDropVectorize

      public AlterTableDropVectorize()
      Default constructor. Creates an empty AlterTableDropVectorize instance.
    • AlterTableDropVectorize

      public AlterTableDropVectorize(String... name)
      Constructs a new AlterTableDropVectorize instance with the specified column names.
      Parameters:
      name - the names of the columns to drop
    • AlterTableDropVectorize

      public AlterTableDropVectorize(Set<String> columns)
      Constructs a new AlterTableDropVectorize instance with the specified set of column names.
      Parameters:
      columns - the set of column names to drop
  • Method Details

    • columns

      public AlterTableDropVectorize columns(String... 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

      public String getOperationName()
      Returns the name of this operation, which is "dropVectorize".
      Specified by:
      getOperationName in interface AlterTableOperation
      Returns:
      the operation name