Class TableColumnDefinitionMap
java.lang.Object
com.datastax.astra.client.tables.definition.columns.TableColumnDefinition
com.datastax.astra.client.tables.definition.columns.TableColumnDefinitionMap
Represents a column definition for a map type in a database schema.
Extends
TableColumnDefinition to include specific details about the key and value types
for map columns.
This class facilitates the configuration of map columns, allowing specification of the types of keys and values stored in the map.
Example usage:
ColumnDefinitionMap mapColumn = new ColumnDefinitionMap(ColumnTypes.TEXT, ColumnTypes.INT);
ColumnTypes keyType = mapColumn.getKeyType();
ColumnTypes valueType = mapColumn.getValueType();
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newColumnDefinitionMapinstance with the column type set toTableColumnTypes.MAP.TableColumnDefinitionMap(TableColumnTypes keyType, TableColumnTypes valueType) Constructs a newColumnDefinitionMapinstance with the specified key and value types. -
Method Summary
Methods inherited from class com.datastax.astra.client.tables.definition.columns.TableColumnDefinition
toString
-
Constructor Details
-
TableColumnDefinitionMap
public TableColumnDefinitionMap()Constructs a newColumnDefinitionMapinstance with the column type set toTableColumnTypes.MAP. -
TableColumnDefinitionMap
Constructs a newColumnDefinitionMapinstance with the specified key and value types.- Parameters:
keyType- the data type of the keys in the mapvalueType- the data type of the values in the map
-