Class TableColumnDefinitionMapUserDefined

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

public class TableColumnDefinitionMapUserDefined 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

    • TableColumnDefinitionMapUserDefined

      public TableColumnDefinitionMapUserDefined(String udtName, TableColumnTypes keyType)
      Constructs a new ColumnDefinitionList instance with the column type set to TableColumnTypes.LIST.
      Parameters:
      udtName - name of the user defined type
      keyType - type of keys for udt map.