Class TableColumnDefinitionSet

java.lang.Object
com.datastax.astra.client.tables.definition.columns.TableColumnDefinition
com.datastax.astra.client.tables.definition.columns.TableColumnDefinitionSet

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

This class is used to configure columns of type TableColumnTypes.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

    • TableColumnDefinitionSet

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

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