Class ColumnDefinitionList
java.lang.Object
com.datastax.astra.client.tables.definition.columns.ColumnDefinition
com.datastax.astra.client.tables.definition.columns.ColumnDefinitionList
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 Summary
ConstructorsConstructorDescriptionConstructs a newColumnDefinitionList
instance with the column type set toColumnTypes.LIST
.ColumnDefinitionList
(ColumnTypes valueType) Constructs a newColumnDefinitionList
instance with the specified value type. -
Method Summary
Methods inherited from class com.datastax.astra.client.tables.definition.columns.ColumnDefinition
toString
-
Constructor Details
-
ColumnDefinitionList
public ColumnDefinitionList()Constructs a newColumnDefinitionList
instance with the column type set toColumnTypes.LIST
. -
ColumnDefinitionList
Constructs a newColumnDefinitionList
instance with the specified value type.- Parameters:
valueType
- the data type of the values in the list
-