Class ColumnDefinitionList

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

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

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

Example usage:

 
 ColumnDefinitionList listColumn = new ColumnDefinitionList(ColumnTypes.TEXT);
 ColumnTypes valueType = listColumn.getValueType();
 
 
  • Constructor Details

    • ColumnDefinitionList

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

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