Class TableColumnDefinitionSetUserDefined

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

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

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

    • TableColumnDefinitionSetUserDefined

      public TableColumnDefinitionSetUserDefined(String udtName)
      Constructs a new TableColumnDefinitionSetUserDefined instance with the column type initialized to TableColumnTypes.LIST, representing a list of user-defined types (UDTs).

      This constructor is used when defining a column that holds a list of values based on a specific user-defined type.

      Parameters:
      udtName - the name of the user-defined type that defines the structure of the list elements; must not be null