Uses of Class
com.datastax.astra.client.tables.definition.TableDefinition
Packages that use 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
Methods in com.datastax.astra.client.databases with parameters of type TableDefinitionModifier 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
Methods in com.datastax.astra.client.tables that return TableDefinitionModifier 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
Methods in com.datastax.astra.client.tables.definition that return TableDefinitionModifier and TypeMethodDescriptionTableDefinition.addColumn(String columnName, TableColumnDefinition columnDefinition) Adds a column to the table definition.TableDefinition.addColumn(String name, TableColumnTypes 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, TableColumnTypes valueType) Adds a list column to the table.TableDefinition.addColumnListUserDefinedType(String name, String udtName) Adds a list column to the table.TableDefinition.addColumnMap(String name, TableColumnTypes keyType, TableColumnTypes valueType) Adds a map column to the table.TableDefinition.addColumnMapUserDefinedType(String name, String udtName, TableColumnTypes keyType) Adds a list column to the table.TableDefinition.addColumnSet(String name, TableColumnTypes valueType) Adds a set column to the table.TableDefinition.addColumnSetUserDefinedType(String name, String udtName) Adds a list 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.addColumnUserDefinedType(String name, String udtName) Adds a user defined type (udt) column.TableDefinition.addColumnUuid(String name) Adds a UUID column to the table.TableDefinition.addColumnVector(String name, TableColumnDefinitionVector 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.Methods in com.datastax.astra.client.tables.definition with parameters of type TableDefinitionModifier and TypeMethodDescriptionTableDescriptor.definition(TableDefinition def) Set the definition of the table.