Uses of Class
com.datastax.astra.client.databases.Database
Package
Description
Entrypoint and core classes for the client.
Administration classes to manage Databases and Namespaces.
Top package to interact with Collections
Top package to interact with Databases and Keyspaces.
Top package to interact with Tables.
-
Uses of Database in com.datastax.astra.client
Modifier and TypeMethodDescriptionDataAPIClient.getDatabase
(String apiEndpoint) Retrieves a database client configured to connect to the Data API using the specified API endpoint.DataAPIClient.getDatabase
(String apiEndpoint, DatabaseOptions dbOptions) Retrieves a database client configured to interact with the Data API.DataAPIClient.getDatabase
(String apiEndpoint, String keyspace) Retrieves a database client configured to connect to the Data API using the specified API endpoint and keyspace.DataAPIClient.getDatabase
(UUID databaseId) Retrieves a database client configured to connect to the Data API using a database identifier.DataAPIClient.getDatabase
(UUID databaseId, DatabaseOptions dbOptions) Retrieves a database client configured to connect to the Data API using a database identifier, with customDatabaseOptions
.DataAPIClient.getDatabase
(UUID databaseId, String region, DatabaseOptions dbOptions) Retrieves a database client configured to connect to the Data API using a database identifier, a specified region, and customDatabaseOptions
.static Database
DataAPIClients.localDbWithDefaultKeyspace()
Creates and configures aDatabase
client specifically designed for interaction with a local instance of the Data API and Cassandra. -
Uses of Database in com.datastax.astra.client.admin
Modifier and TypeFieldDescriptionprotected Database
DataAPIDatabaseAdmin.db
Database if initialized from the DB.Modifier and TypeMethodDescriptionAstraDBAdmin.getDatabase
(UUID databaseId) Access the database functions.AstraDBAdmin.getDatabase
(UUID databaseId, DatabaseOptions dbOptions) Access the database functions.AstraDBAdmin.getDatabase
(UUID databaseId, String keyspace) Access the database functions.AstraDBDatabaseAdmin.getDatabase()
Access the Database associated with this admin class.AstraDBDatabaseAdmin.getDatabase
(String keyspace) Access teh database with the default token.AstraDBDatabaseAdmin.getDatabase
(String keyspace, String tokenUser) Access teh database with the specialized token.DataAPIDatabaseAdmin.getDatabase()
Access the Database associated with this admin class.DataAPIDatabaseAdmin.getDatabase
(String keyspace) Retrieves aDatabase
instance that represents a specific database (or namespace) based on the provided namespace name.DataAPIDatabaseAdmin.getDatabase
(String keyspace, String userToken) Access the Database associated with this admin class.DatabaseAdmin.getDatabase()
Access the Database associated with this admin class.DatabaseAdmin.getDatabase
(String keyspace) Retrieves aDatabase
instance that represents a specific database (or namespace) based on the provided namespace name.DatabaseAdmin.getDatabase
(String keyspace, String userToken) Access the Database associated with this admin class.ModifierConstructorDescriptionAstraDBDatabaseAdmin
(Database db, AdminOptions adminOptions) Initialize a database admin from token and database id.DataAPIDatabaseAdmin
(Database db, AdminOptions options) Initialize a database admin from token and database id. -
Uses of Database in com.datastax.astra.client.collections
ModifierConstructorDescriptionCollection
(Database db, String collectionName, CollectionOptions collectionOptions, Class<T> documentClass) Constructs an instance of a collection within the specified database. -
Uses of Database in com.datastax.astra.client.databases
Modifier and TypeMethodDescriptionDatabase.useKeyspace
(String keyspace) Sets the active keyspace for the database. -
Uses of Database in com.datastax.astra.client.tables