Class ColumnDefinitionSet

java.lang.Object
com.datastax.astra.client.tables.definition.columns.ColumnDefinition
com.datastax.astra.client.tables.definition.columns.ColumnDefinitionSet

public class ColumnDefinitionSet extends ColumnDefinition
Represents a column definition for a set type in a database schema. Extends ColumnDefinition to include details about the type of elements stored in the set.

This class is used to configure columns of type ColumnTypes.SET, allowing the specification of the data type for the values stored in the set.

Example usage:

 
 ColumnDefinitionSet setColumn = new ColumnDefinitionSet(ColumnTypes.TEXT);
 ColumnTypes valueType = setColumn.getValueType();
 
 
  • Constructor Details

    • ColumnDefinitionSet

      public ColumnDefinitionSet()
      Constructs a new ColumnDefinitionSet instance with the column type set to ColumnTypes.SET.
    • ColumnDefinitionSet

      public ColumnDefinitionSet(ColumnTypes valueType)
      Constructs a new ColumnDefinitionSet instance with the specified value type.
      Parameters:
      valueType - the data type of the values in the set