Uses of Class
com.datastax.astra.client.tables.definition.TableDefinition
Package
Description
Top package to interact with Databases and Keyspaces.
Top package to interact with Tables.
Objects describing the structure of a Table.
-
Uses of TableDefinition in com.datastax.astra.client.databases
Modifier and TypeMethodDescriptionDatabase.createTable
(String tableName, TableDefinition tableDefinition) Creates a table with a default row type ofRow
.Database.createTable
(String tableName, TableDefinition tableDefinition, CreateTableOptions options) Creates a table using default options and runtime configurations.<T> Table
<T> Database.createTable
(String tableName, TableDefinition tableDefinition, Class<T> rowClass) Creates a table using default options and runtime configurations.<T> Table
<T> Database.createTable
(String tableName, TableDefinition tableDefinition, Class<T> rowClass, CreateTableOptions createTableOptions) Creates a table in the system with the specified parameters. -
Uses of TableDefinition in com.datastax.astra.client.tables
Modifier and TypeMethodDescriptionTable.getDefinition()
Retrieves the full definition of the table, encompassing both its name and its configuration options. -
Uses of TableDefinition in com.datastax.astra.client.tables.definition
Modifier and TypeMethodDescriptionTableDefinition.addColumn
(String columnName, ColumnDefinition columnDefinition) Adds a column to the table definition.TableDefinition.addColumn
(String name, ColumnTypes type) Adds a column to the table with a specific type.TableDefinition.addColumnAscii
(String name) Adds an ascii column to the table.TableDefinition.addColumnBigInt
(String name) Adds a boolean column to the table.TableDefinition.addColumnBlob
(String name) Adds a blob column to the table.TableDefinition.addColumnBoolean
(String name) Adds a boolean column to the table.TableDefinition.addColumnInt
(String name) Adds an integer column to the table.TableDefinition.addColumnList
(String name, ColumnTypes valueType) Adds a list column to the table.TableDefinition.addColumnMap
(String name, ColumnTypes keyType, ColumnTypes valueType) Adds a map column to the table.TableDefinition.addColumnSet
(String name, ColumnTypes valueType) Adds a set column to the table.TableDefinition.addColumnText
(String name) Adds a text column to the table.TableDefinition.addColumnTimestamp
(String name) Adds a timestamp column to the table.TableDefinition.addColumnVector
(String name, ColumnDefinitionVector colDefVector) Adds a vector column to the table.TableDefinition.addPartitionBy
(String partitionKey) Adds a partition key to the table's primary key.TableDefinition.addPartitionSort
(Sort column) Adds a sort column to the table's primary key.TableDefinition.clusteringColumns
(Sort... clusteringColumns) Sets the clustering columns for the table.TableDefinition.partitionKey
(String... partitionKeys) Sets the partition keys for the table.Modifier and TypeMethodDescriptionTableDescriptor.definition
(TableDefinition def) Set the definition of the table.