diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..0e65bc5 Binary files /dev/null and b/.DS_Store differ diff --git a/astra-db-java/.DS_Store b/astra-db-java/.DS_Store new file mode 100644 index 0000000..b448804 Binary files /dev/null and b/astra-db-java/.DS_Store differ diff --git a/astra-db-java/1.2.0/allclasses-index.html b/astra-db-java/1.2.0/allclasses-index.html new file mode 100644 index 0000000..7afe6a3 --- /dev/null +++ b/astra-db-java/1.2.0/allclasses-index.html @@ -0,0 +1,580 @@ + + + + +All Classes and Interfaces (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

All Classes and Interfaces

+
+
+
+
+
+
Class
+
Description
+ +
+
Execute the command and parse results throwing DataApiResponseException when needed.
+
+ +
+
Helper to log with colors.
+
+ +
+
Represents a segment of the response payload for a JSON API, encapsulating the data returned from a query or operation.
+
+ +
+
Encapsulates error details from a JSON API response.
+
+ +
+
Represents the generic response structure for API calls.
+
+ +
+
Response HTTP.
+
+ +
+
Syntaxic sugar for common validations.
+
+ +
+
Create an endpoint to connect to a database.
+
+ +
+
Main Client for AstraDB, it implements administration and Data Api Operations.
+
+ +
+
Implementation of the DatabaseAdmin interface for Astra.
+
+ +
+
Specialized Error.
+
+ +
+
Options used in the `bulkWrite` command.
+
+ +
+
Builder for creating FindOneAndUpdateOptions instances with a fluent API.
+
+ +
+
Store the list of responses returned by the bulk write.
+
+ +
+
A Data API collection, the main object to interact with the Data API, especially for DDL operations.
+
+ +
+
List of possible types for the collection 'defaultId'.
+
+ +
+
Represents the Collection definition with its name and metadata.
+
+ +
+
Set of options to define and initialize a collection.
+
+ +
+
Builder for CollectionInfo.
+
+ +
+
Subclass representing the indexing options.
+
+ +
+
Subclass representing the indexing options.
+
+ +
+
Subclass representing a parameters for LLM Services
+
+ +
+
Subclass representing the services options.
+
+ +
+
Subclass representing the vector options.
+
+ +
+
Represent a command to be executed against the Data API.
+
+ +
+
Custom serializer for Command class.
+
+ +
+
Defines the contract for observers that react to command executions within the DataApiClient.
+
+ +
+
Options that will be provided to all commands for this collection.
+
+ +
+
Use to initialize the HTTPClient.
+
+ +
+
Utilities to work with Async functions.
+
+ +
+
List Options for a FindOne command.
+
+ +
+
Custom deserializer for EJson Date type.
+
+ +
+
Custom Serializer for EJson Date type.
+
+ +
+
Custom deserializer for EJson Date type.
+
+ +
+
Custom Serializer for EJson Date type.
+
+ +
+
Custom deserializer for EJson Date type.
+
+ +
+
Custom Serializer for EJson Date type.
+
+ +
+
Custom deserializer for EJson Date type.
+
+ +
+
Object Id Could be + objectId|uuid|uuidv6|uuidv7
+
+ +
+
Custom deserializer for EJson Date type.
+
+ +
+
Object Id Could be + objectId|uuid|uuidv6|uuidv7
+
+ +
+
Object Id Could be + objectId|uuid|uuidv6|uuidv7
+
+ +
+
Object Id Could be + objectId|uuid|uuidv6|uuidv7
+
+ +
+
Serves as the primary entry point to the Data API client, offering streamlined access to the functionalities + provided by the Data API, whether deployed within Astra environments or on-premise DataStax Enterprise installations.
+
+ +
+
Provides utility methods for initializing and configuring clients to interact with the Data API.
+
+ +
+
Implementation of Client.
+
+ +
+
Represents a runtime exception that occurs within the Data API client.
+
+ +
+
Represents a specific kind of DataApiException that is thrown when the response + received from the Data API does not match the expected format or content.
+
+ +
+
Constants in the JSON API.
+
+ +
+
Options to set up the client for DataApiClient.
+
+ +
+
Builder for the DataAPIClientOptions.
+
+ +
+
Represent the destination of the data API.
+
+ +
+
Subclass to represent an http proxy.
+
+ +
+
Extends DataApiException to specifically address errors encountered during the + processing of responses from the Data API.
+
+ +
+
A Data API database.
+
+ +
+
Defines the core client interface for interacting with the Data API, focusing on CRUD (Create, Read, Update, Delete) + operations for namespaces.
+
+ +
+
Bean representing the database information.
+
+ +
+
Options to delete many documents.
+
+ +
+
Options to delete One document.
+
+ +
Deprecated.
+ +
+
Hold the result of delete commands (deleteOne, deleteMany).
+
+ +
+
Iterator to get all distinct value for a particular field.
+
+ +
+
Iterator to retrieve distinct values of a field in a document.
+
+ +
+
Represents a document without schema constraints as a Map<String, Object>.(key/value)
+
+ +
+
Class representing the Embedding Provider returned by findEmbeddingProviders command.
+
+ +
+
Authentication method.
+
+ +
+
Model for the service.
+
+ +
+
Parameters for the service.
+
+ +
+
Token method.
+
+ +
+
Validation Component for the parameter.
+
+ +
+
List Options for a FindOne command.
+
+ +
+
Encapsulates detailed information about the execution of a command, including the original request, + the raw response, HTTP response details, and timing information.
+
+ +
+
Builder class for execution information
+
+ +
+
Filter Builder.
+
+ +
+
Helper to build a where clause in natural language (fluent API).
+
+ +
+
Ease process of creating a where clause.
+
+ +
+
Helper to create Filter
+
+ +
+
Represents the result of a 'find' command executed on a collection, providing an iterable interface to navigate + through the result set.
+
+ +
+
Implementing a custom iterator that will load next page if needed when hitting the last item of page.
+
+ +
+
Options to find one and delete.
+
+ +
+
Builder for creating FindOneAndDeleteOptions instances with a fluent API.
+
+ +
+
Options used in the `findAndReplace` command.
+
+ +
Deprecated.
+ +
+
Store the result of a findOneAndReplace operation.
+
+ +
+
List options for a findOneAndUpdate command.
+
+ +
Deprecated.
+ +
+
List Options for a FindOne command.
+
+ +
Deprecated.
+ +
+
List Options for a FindOne command.
+
+ +
Deprecated.
+ +
+
Options to set up http Client.
+
+ +
+
Options for InsertMany
+
+ +
Deprecated.
+ +
+
Represents the result returned by command 'insertMany()', mainly the insertedIds.
+
+ +
+
Options for InsertOne
+
+ +
+
Represents the result returned by command 'insertOne()', mainly the insertedI
+
+ +
+
Custom implementation of serialization : faster + no jackson dependency
+
+ +
+
Implements a CommandObserver that logs command execution details.
+
+ +
+
Represents the Namespace (keyspac) definition with its name and metadata.
+
+ +
+
Replication strategies
+
+ +
+
Options to create a Namespace.
+
+ +
+
A globally unique identifier for objects.
+
+ +
+
Reuse of treatments for options
+
+ +
+
Hold results for paging
+
+ +
+
Helping Iteration on Pages and Documents for DataApi.
+
+ +
+
Encode the presence of a field in the result.
+
+ +
+
Encode the presence of a field in the result.
+
+ +
+
Options for the replaceOne operation.
+
+ +
Deprecated.
+ +
+
Http Client using JDK11 client with a retry mechanism.
+
+ +
+
Enum to define the return document option.
+
+ +
+
Similarity metric.
+
+ +
+
Class to help building a projection.
+
+ +
+
Encode the sort order in results.
+
+ +
+
Utility class to hold the sort options for a query.
+
+ +
+
To work the APi needs a token.
+
+ +
+
Static token, never expires..
+
+ +
+
Using the authentication endpoint you should be able tp...
+
+ +
+
Creating a token with base64 encoded credentials.
+
+ +
+
Error when too many documents in the collection
+
+ +
+
Encore the update document
+
+ +
+
Options for the updateOne operation
+
+ +
Deprecated.
+ +
+
Options for the updateOne operation
+
+ +
Deprecated.
+ +
+
Return update result.
+
+ +
+
Helper for Syntax with updates.
+
+ +
+
Materializing the UUIDv6 as a specialization class to drive serialization and deserialization.
+
+ +
+
Materializing the UUIDv6 as a specialization class to drive serialization and deserialization.
+
+
+
+
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/allpackages-index.html b/astra-db-java/1.2.0/allpackages-index.html new file mode 100644 index 0000000..9319808 --- /dev/null +++ b/astra-db-java/1.2.0/allpackages-index.html @@ -0,0 +1,108 @@ + + + + +All Packages (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
Package Summary
+
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+ +
+
Administration classes to manage Databases and Namespaces.
+
+ +
+
Exceptions specialized checked and unchecked thrown by the client.
+
+ +
+
Domain model classes with Requests, Results, Options and Iterables.
+
+ +
+
Internal technical classes
+
+ +
+
Internal technical classes to marshall API responses
+
+ +
+
Internal technical classes to authenticate against API endpoint.
+
+ +
+
Internal technical classes to run commands against the API.
+
+ +
+
Internal technical classes to execute HTTP requests.
+
+ +
+
Internal technical classes for low-level utilities
+
+
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/Collection.html b/astra-db-java/1.2.0/com/datastax/astra/client/Collection.html new file mode 100644 index 0000000..8e987d1 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/Collection.html @@ -0,0 +1,2505 @@ + + + + +Collection (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Collection<T>

+
+ +
+
+
Type Parameters:
+
T - Java bean to unmarshall documents for collection.
+
+
+
All Implemented Interfaces:
+
CommandRunner
+
+
+
public class Collection<T> +extends AbstractCommandRunner
+
A Data API collection, the main object to interact with the Data API, especially for DDL operations. +

+ A Collection is spawned from a Database object, from which it inherits the details on how to reach the API server + (endpoint, authentication). A Collection has a name, which is its unique identifier for a namespace and + options to specialize the usage as vector collections or advanced indexing parameters. +

+

+ A Collection is typed object designed to work both with default @Document (wrapper for a Map) and application + plain old java objects (pojo). The serialization is performed with Jackson and application beans can be annotated. +

+

+ All features are provided in synchronous and asynchronous flavors. +

+

Example usage:

+
+ 
+ // Given a Database
+ Database db = new DataAPIClient("token").getDatabase("api_endpoint");
+
+ // Initialization with no POJO
+ Collection<Document> collection = db.getCollection("collection1");
+
+ // Initialization with POJO
+ Collection<MyBean> collection = db.getCollection("collection1", MyBean.class);
+ 
+ 
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      RESULT_DELETED_COUNT

      +
      public static final String RESULT_DELETED_COUNT
      +
      parsing output json
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      RESULT_MATCHED_COUNT

      +
      public static final String RESULT_MATCHED_COUNT
      +
      parsing output json
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      RESULT_MODIFIED_COUNT

      +
      public static final String RESULT_MODIFIED_COUNT
      +
      parsing output json
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      RESULT_UPSERTED_ID

      +
      public static final String RESULT_UPSERTED_ID
      +
      parsing output json
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      RESULT_MORE_DATA

      +
      public static final String RESULT_MORE_DATA
      +
      parsing output json
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      RESULT_COUNT

      +
      public static final String RESULT_COUNT
      +
      parsing output json
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      INPUT_INCLUDE_SIMILARITY

      +
      public static final String INPUT_INCLUDE_SIMILARITY
      +
      json inputs
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      documentClass

      +
      protected final Class<T> documentClass
      +
      Working class representing documents of the collection. The default value is Document.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Collection

      +
      protected Collection(Database db, + String collectionName, + CommandOptions<?> commandOptions, + Class<T> clazz)
      +
      Constructs an instance of a collection within the specified database. This constructor + initializes the collection with a given name and associates it with a specific class type + that represents the schema of documents within the collection. This setup is designed for + CRUD (Create, Read, Update, Delete) operations.
      +
      +
      Parameters:
      +
      db - The Database instance representing the client's namespace for HTTP + communication with the database. It encapsulates the configuration and management + of the database connection, ensuring that operations on this collection are + executed within the context of this database.
      +
      collectionName - A String that uniquely identifies the collection within the + database. This name is used to route operations to the correct + collection and should adhere to the database's naming conventions.
      +
      commandOptions - the options to apply to the command operation. If left blank the default collection + +

      Example usage:

      +
      + 
      + // Given a client
      + DataAPIClient client = new DataAPIClient("token");
      + // Given a database
      + Database myDb = client.getDatabase("myDb");
      + // Initialize a collection with a working class
      + Collection<MyDocumentClass> myCollection = new Collection<>(myDb, "myCollectionName", MyDocumentClass.class);
      + 
      + 
      +
      clazz - The Class<DOC> object that represents the model for documents within + this collection. This class is used for serialization and deserialization of + documents to and from the database. It ensures type safety and facilitates + the mapping of database documents to Java objects.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getNamespaceName

      +
      public String getNamespaceName()
      +
      Retrieves the name of the parent namespace associated with this collection. A namespace in + this context typically refers to a higher-level categorization or grouping mechanism within + the database that encompasses one or more collections. This method allows for identifying + the broader context in which this collection exists, which can be useful for operations + requiring knowledge of the database structure or for dynamic database interaction patterns.
      +
      +
      Returns:
      +
      A String representing the name of the parent namespace of the current + collection. This name serves as an identifier for the namespace and can be used + to navigate or query the database structure. + +

      Example usage:

      +
      + 
      + Collection myCollection = ... // assume myCollection is already initialized
      + String namespaceName = myCollection.getNamespaceName();
      + System.out.println("The collection belongs to the namespace: " + namespaceName);
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      getDefinition

      +
      public CollectionInfo getDefinition()
      +
      Retrieves the full definition of the collection, encompassing both its name and its configuration options. + This comprehensive information is encapsulated in a CollectionInfo object, providing access to the + collection's metadata and settings. + +

      The returned CollectionInfo includes details such as the collection's name, which serves as its + unique identifier within the database, and a set of options that describe its configuration. These options + may cover aspects like indexing preferences, read/write permissions, and other customizable settings that + were specified at the time of collection creation.

      + +

      Example usage:

      +
      + 
      + // Given a collection
      + DataApiCollection<Document> collection;
      + // Access its Definition
      + CollectionDefinition definition = collection.getDefinition();
      + System.out.println("Name=" + definition.getName());
      + CollectionOptions options = definition.getOptions();
      + if (options != null) {
      +   // Operations based on collection options
      + }
      + 
      + 
      +
      +
      Returns:
      +
      A CollectionInfo object containing the full definition of the collection, including its name + and configuration options. This object provides a comprehensive view of the collection's settings + and identity within the database.
      +
      +
      +
    • +
    • +
      +

      getOptions

      +
      public CollectionOptions getOptions()
      +
      Retrieves the configuration options for the collection, including vector and indexing settings. + These options specify how the collection should be created and managed, potentially affecting + performance, search capabilities, and data organization. +

      Example usage:

      +
      + 
      + // Given a collection
      + DataApiCollection<Document> collection;
      + // Access its Options
      + CollectionOptions options = collection.getOptions();
      + if (null != c.getVector()) {
      +   System.out.println(c.getVector().getDimension());
      +   System.out.println(c.getVector().getMetric());
      + }
      + if (null != c.getIndexing()) {
      +   System.out.println(c.getIndexing().getAllow());
      +   System.out.println(c.getIndexing().getDeny());
      + }
      + 
      + 
      +
      +
      Returns:
      +
      An instance of CollectionOptions containing the collection's configuration settings, + such as vector and indexing options. Returns null if no options are set or applicable.
      +
      +
      +
    • +
    • +
      +

      getName

      +
      public String getName()
      +
      Retrieves the name of the collection. This name serves as a unique identifier within the database and is + used to reference the collection in database operations such as queries, updates, and deletions. The collection + name is defined at the time of collection creation and is immutable.
      +
      +
      Returns:
      +
      A String representing the name of the collection. This is the same name that was specified + when the collection was created or initialized.
      +
      +
      +
    • +
    • +
      +

      insertOne

      +
      public final InsertOneResult insertOne(T document)
      +
      Inserts a single document into the collection as an atomic operation, ensuring that the + document is added in a single, indivisible step. + +

      Note: The document can optionally include an _id property, which serves as + its unique identifier within the collection. If the _id property is provided and it + matches the _id of an existing document in the collection, the insertion will fail + and an error will be raised. This behavior ensures that each document in the collection has + a unique identifier. If the _id property is not provided, the server will + automatically generate a unique _id for the document, ensuring its uniqueness within + the collection.

      + +

      The `_id` can be of multiple types, by default it can be any json scalar String, Number, $date. But + at the collection definition level you can enforce property `defaultId` to work with specialize ids.

      +
        +
      • If defaultId is set to uuid, ids will be uuid v4 UUID
      • +
      • If defaultId is set to objectId, ids will be an ObjectId
      • +
      • If defaultId is set to uuidv6, ids will be an UUIDv6
      • +
      • If defaultId is set to uuidv7, ids will be an UUIDv7
      • +
      + +

      The method returns an InsertOneResult object, which provides details about the + outcome of the insertion operation. This object can be used to verify the success of the + operation and to access the _id of the inserted document, whether it was provided + explicitly or generated automatically.

      +
      +
      Parameters:
      +
      document - the document to be inserted into the collection. This parameter should represent + the document in its entirety. The _id field is optional and, if omitted, + will be automatically generated.
      +
      Returns:
      +
      An InsertOneResult object that contains information about the result of the + insertion operation, including the _id of the newly inserted document. + +

      Example usage:

      +
      + 
      + // Create a document without id.
      + Document newDocument = new Document("name", "John Doe").append("age", 30);
      + InsertOneResult result = collection.insertOne(newDocument);
      + System.out.println("(generated) document id: " + result.getInsertedId());
      +
      + // Provide a document id
      + Document doc2 = Document.create("doc2").append("name", "John Doe").append("age", 30);
      + InsertOneResult result = collection.insertOne(doc2);
      + result.getInsertedId(); // will be "doc2"
      +
      + // More way to provide to populate ids.
      + Document doc3 = new Document("doc3");
      + Document doc4 = new Document().id("doc4");
      + Document doc5 = new Document().append("_id", "doc5");
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertOne

      +
      public final InsertOneResult insertOne(T document, + InsertOneOptions insertOneOptions)
      +
      Inserts a single document into the collection as an atomic operation, ensuring that the + document is added in a single, indivisible step. + +

      Note: The document can optionally include an _id property, which serves as + its unique identifier within the collection. If the _id property is provided and it + matches the _id of an existing document in the collection, the insertion will fail + and an error will be raised. This behavior ensures that each document in the collection has + a unique identifier. If the _id property is not provided, the server will + automatically generate a unique _id for the document, ensuring its uniqueness within + the collection.

      + +

      The `_id` can be of multiple types, by default it can be any json scalar String, Number, $date. But + at the collection definition level you can enforce property `defaultId` to work with specialize ids.

      +
        +
      • If defaultId is set to uuid, ids will be uuid v4 UUID
      • +
      • If defaultId is set to objectId, ids will be an ObjectId
      • +
      • If defaultId is set to uuidv6, ids will be an UUIDv6
      • +
      • If defaultId is set to uuidv7, ids will be an UUIDv7
      • +
      + +

      The method returns an InsertOneResult object, which provides details about the + outcome of the insertion operation. This object can be used to verify the success of the + operation and to access the _id of the inserted document, whether it was provided + explicitly or generated automatically.

      +
      +
      Parameters:
      +
      document - the document to be inserted into the collection. This parameter should represent + the document in its entirety. The _id field is optional and, if omitted, + will be automatically generated.
      +
      insertOneOptions - the options to apply to the insert operation. If left blank the default collection + options will be used. If collection option is blank DataAPIOptions will be used.
      +
      Returns:
      +
      An InsertOneResult object that contains information about the result of the + insertion operation, including the _id of the newly inserted document. + +

      Example usage:

      +
      + 
      + // Create a document without id.
      + Document newDocument = new Document("name", "John Doe").append("age", 30);
      + InsertOneResult result = collection.insertOne(newDocument);
      + System.out.println("(generated) document id: " + result.getInsertedId());
      +
      + // Provide a document id
      + Document doc2 = Document.create("doc2").append("name", "John Doe").append("age", 30);
      + InsertOneResult result = collection.insertOne(doc2);
      + result.getInsertedId(); // will be "doc2"
      +
      + // More way to provide to populate ids.
      + Document doc3 = new Document("doc3");
      + Document doc4 = new Document().id("doc4");
      + Document doc5 = new Document().append("_id", "doc5");
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertOneAsync

      +
      public final CompletableFuture<InsertOneResult> insertOneAsync(T document)
      +
      Asynchronously inserts a single document into the collection. This method provides the same functionality as + insertOne(Object), but it operates asynchronously, returning a CompletableFuture that + will be completed with the insertion result. Utilizing this method is beneficial for non-blocking operations, + allowing other tasks to proceed while the document insertion is being processed. + +

      The asynchronous operation ensures that your application can remain responsive, making this method ideal for + applications requiring high throughput or for operations that do not need immediate completion confirmation.

      + +

      For details on the behavior, parameters, and return type, refer to the documentation of the synchronous + insertOne(Object) method. This method inherits all the properties and behaviors of its synchronous + counterpart, including error handling and the generation or requirement of the _id field.

      +
      +
      Parameters:
      +
      document - The document to be inserted into the collection. The specifications regarding the document + structure and the _id field are the same as described in insertOne(Object).
      +
      Returns:
      +
      A CompletableFuture that, upon completion, contains the result of the insert operation as an + InsertOneResult. The completion may occur with a result in case of success or with an exception + in case of failure. + +

      Example usage:

      +
      + 
      + // Asynchronously inserting a document
      + Document newDocument = new Document().append("name", "Async User").append("age", 34);
      + CompletableFuture<InsertOneResult> futureResult = collection.insertOneAsync(newDocument);
      + futureResult.thenAccept(result -> System.out.println("Inserted document id: " + result.getInsertedId()))
      +             .exceptionally(error -> { System.err.println("Insertion failed: " + error.getMessage()); return null; });
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertOneAsync

      +
      public final CompletableFuture<InsertOneResult> insertOneAsync(T document, + InsertOneOptions options)
      +
      Asynchronous implementation of insertOne(Object, InsertOneOptions).
      +
      +
      Parameters:
      +
      document - document to insert
      +
      options - the options to apply to the insert operation. If left blank the default collection + options will be used. If collection option is blank DataAPIOptions will be used.
      +
      Returns:
      +
      result for insertion
      +
      +
      +
    • +
    • +
      +

      insertOne

      +
      public final InsertOneResult insertOne(T document, + float[] embeddings)
      +
      Inserts a single document into the collection in an atomic operation, similar to the insertOne(Object) + method, but with the additional capability to include vector embeddings. These embeddings are typically used for + advanced querying capabilities, such as similarity search or machine learning models. This method ensures atomicity + of the insertion, maintaining the integrity and consistency of the collection. + +

      Note: Like the base insertOne method, if the _id field is explicitly provided and matches + an existing document's _id in the collection, the insertion will fail with an error. If the _id field + is not provided, it will be automatically generated by the server, ensuring the document's uniqueness within the + collection. This variant of the method allows for the explicit addition of a "$vector" property to the document, + storing the provided embeddings.

      + +

      The embeddings should be a float array representing the vector to be associated with the document. This vector + can be utilized by the database for operations that require vector space computations. An array containing only + zero is not valid as it would lead to computation error with division by zero.

      +
      +
      Parameters:
      +
      document - The document to be inserted. This can include or omit the _id field. If omitted, + an _id will be automatically generated.
      +
      embeddings - The vector embeddings to be associated with the document, expressed as an array of floats. + This array populates the "$vector" property of the document, enabling vector-based operations.
      +
      Returns:
      +
      An InsertOneResult object that contains information about the result of the insertion, including + the _id of the newly inserted document, whether it was explicitly provided or generated. + +

      Example usage:

      +
      + 
      + // Document without an explicit _id and embeddings for vector-based operations
      + Document newDocument = new Document().append("name", "Jane Doe").append("age", 25);
      + float[] embeddings = new float[]{0.12f, 0.34f, 0.56f, 0.78f};
      + InsertOneResult result = collection.insertOne(newDocument, embeddings);
      + System.out.println("Inserted document id: " + result.getInsertedId());
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertOne

      +
      public final InsertOneResult insertOne(T document, + float[] embeddings, + InsertOneOptions options)
      +
      Inserts a single document into the collection in an atomic operation, similar to the insertOne(Object) + method, but with the additional capability to include vector embeddings. These embeddings are typically used for + advanced querying capabilities, such as similarity search or machine learning models. This method ensures atomicity + of the insertion, maintaining the integrity and consistency of the collection. + +

      Note: Like the base insertOne method, if the _id field is explicitly provided and matches + an existing document's _id in the collection, the insertion will fail with an error. If the _id field + is not provided, it will be automatically generated by the server, ensuring the document's uniqueness within the + collection. This variant of the method allows for the explicit addition of a "$vector" property to the document, + storing the provided embeddings.

      + +

      The embeddings should be a float array representing the vector to be associated with the document. This vector + can be utilized by the database for operations that require vector space computations. An array containing only + zero is not valid as it would lead to computation error with division by zero.

      +
      +
      Parameters:
      +
      document - The document to be inserted. This can include or omit the _id field. If omitted, + an _id will be automatically generated.
      +
      embeddings - The vector embeddings to be associated with the document, expressed as an array of floats. + This array populates the "$vector" property of the document, enabling vector-based operations.
      +
      options - the options to apply to the insert operation. If left blank the default collection + options will be used. If collection option is blank DataAPIOptions will be used.
      +
      Returns:
      +
      An InsertOneResult object that contains information about the result of the insertion, including + the _id of the newly inserted document, whether it was explicitly provided or generated. + +

      Example usage:

      +
      + 
      + // Document without an explicit _id and embeddings for vector-based operations
      + Document newDocument = new Document().append("name", "Jane Doe").append("age", 25);
      + float[] embeddings = new float[]{0.12f, 0.34f, 0.56f, 0.78f};
      + InsertOneResult result = collection.insertOne(newDocument, embeddings);
      + System.out.println("Inserted document id: " + result.getInsertedId());
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertOneAsync

      +
      public final CompletableFuture<InsertOneResult> insertOneAsync(T document, + float[] embeddings)
      +
      Asynchronously inserts a single document into the collection with vector embeddings. This method mirrors the + functionality of insertOne(Object,float[]), operating asynchronously to return a + CompletableFuture that completes with the insertion result. It is designed for use cases where + non-blocking operations are essential, enabling other processes to continue while the document insertion + is executed in the background. + +

      This method provides a convenient way to insert documents along with their associated vector embeddings + without halting the execution of your application, making it particularly suitable for applications that + require high levels of responsiveness or for operations where immediate confirmation of completion is not + critical.

      + +

      For a comprehensive understanding of the behavior, parameters, including the purpose and use of vector + embeddings, refer to the synchronous insertOne(Object,float[] embeddings) method. This + asynchronous variant adopts all the behaviors and properties of its synchronous counterpart.

      +
      +
      Parameters:
      +
      document - The document to be inserted, potentially without an _id field which, if omitted, + will be automatically generated.
      +
      embeddings - The vector embeddings associated with the document, intended to be used for advanced + database operations such as similarity search.
      +
      Returns:
      +
      A CompletableFuture that, upon completion, contains the result of the insert operation as an + InsertOneResult. This future may be completed with a successful result or an exception in + case of insertion failure. + +

      Example usage:

      +
      + 
      + // Asynchronously inserting a document with embeddings
      + Document newDocument = new Document().append("title", "Async Insert with Embeddings").append("content", "Content for embeddings");
      + float[] embeddings = {0.1f, 0.2f, 0.3f};
      + CompletableFuture<InsertOneResult> futureResult = collection.insertOneAsync(newDocument, embeddings);
      + futureResult.thenAccept(result -> System.out.println("Inserted document id: " + result.getInsertedId()))
      +              .exceptionally(error -> { System.err.println("Insertion failed: " + error.getMessage()); return null; });
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertOne

      +
      public final InsertOneResult insertOne(T document, + String vectorize, + InsertOneOptions options)
      +
      Inserts a single document into the collection in an atomic operation, extending the base functionality of + the insertOne(Object) method by adding the capability to compute and include a vector of embeddings + directly within the document. This is achieved through a specified expression, which the service translates + into vector embeddings. These embeddings can then be utilized for advanced database operations that leverage + vector similarity. +

      Note : This feature is under current development.

      + +

      Note: As with the base insertOne method, providing an _id field that matches an existing + document's _id in the collection will cause the insertion to fail with an error. If the _id field + is not present, it will be automatically generated, ensuring the document's uniqueness. This method variant + introduces the ability to automatically compute embeddings based on the provided vectorize string, + populating the "$vectorize" property of the document for later use in vector-based operations.

      + +

      The vectorize parameter should be a string that conveys meaningful information about the document, + which will be converted into a vector representation by the database's embedding service. This functionality + is especially useful for enabling semantic searches or clustering documents based on their content similarity.

      +
      +
      Parameters:
      +
      document - The document to be inserted. It can optionally include the _id field. If omitted, + an _id will be automatically generated.
      +
      vectorize - The expression to be translated into a vector of embeddings. This string is processed by + the service to generate vector embeddings that are stored in the document under the "$vectorize" + property.
      +
      options - the options to apply to the insert operation. If left blank the default collection + options will be used. If collection option is blank DataAPIOptions will be used.
      +
      Returns:
      +
      An InsertOneResult object that contains information about the result of the insertion, including + the _id of the newly inserted document, whether it was explicitly provided or generated. + +

      Example usage:

      +
      + 
      + // Document without an explicit _id and a string to be vectorized
      + Document newDocument = new Document().append("title", "How to Use Vectorization");
      + String vectorizeExpression = "This is a guide on vectorization.";
      + InsertOneResult result = collection.insertOne(newDocument, vectorizeExpression);
      + System.out.println("Inserted document id: " + result.getInsertedId());
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertOne

      +
      public final InsertOneResult insertOne(T document, + String vectorize)
      +
      Inserts a single document into the collection in an atomic operation, extending the base functionality of + the insertOne(Object) method by adding the capability to compute and include a vector of embeddings + directly within the document. This is achieved through a specified expression, which the service translates + into vector embeddings. These embeddings can then be utilized for advanced database operations that leverage + vector similarity. +

      Note : This feature is under current development.

      + +

      Note: As with the base insertOne method, providing an _id field that matches an existing + document's _id in the collection will cause the insertion to fail with an error. If the _id field + is not present, it will be automatically generated, ensuring the document's uniqueness. This method variant + introduces the ability to automatically compute embeddings based on the provided vectorize string, + populating the "$vectorize" property of the document for later use in vector-based operations.

      + +

      The vectorize parameter should be a string that conveys meaningful information about the document, + which will be converted into a vector representation by the database's embedding service. This functionality + is especially useful for enabling semantic searches or clustering documents based on their content similarity.

      +
      +
      Parameters:
      +
      document - The document to be inserted. It can optionally include the _id field. If omitted, + an _id will be automatically generated.
      +
      vectorize - The expression to be translated into a vector of embeddings. This string is processed by + the service to generate vector embeddings that are stored in the document under the "$vectorize" + property.
      +
      Returns:
      +
      An InsertOneResult object that contains information about the result of the insertion, including + the _id of the newly inserted document, whether it was explicitly provided or generated. + +

      Example usage:

      +
      + 
      + // Document without an explicit _id and a string to be vectorized
      + Document newDocument = new Document().append("title", "How to Use Vectorization");
      + String vectorizeExpression = "This is a guide on vectorization.";
      + InsertOneResult result = collection.insertOne(newDocument, vectorizeExpression);
      + System.out.println("Inserted document id: " + result.getInsertedId());
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertOneAsync

      +
      public final CompletableFuture<InsertOneResult> insertOneAsync(T document, + String vectorize)
      +
      Asynchronously inserts a single document into the collection with a vectorization expression. This method + provides an asynchronous counterpart to insertOne(Object,String), allowing for + non-blocking operations while a document, along with its vectorization based on the provided string, is + inserted into the collection. +

      Note : This feature is under current development.

      + +

      Utilizing this method facilitates the insertion of documents in scenarios where application responsiveness + is crucial. It allows the application to continue with other tasks while the document insertion, including + its vectorization, is processed in the background. This is particularly useful for operations that can + benefit from parallel execution or when the insertion time is not critical to the application's flow.

      + +

      For detailed information on the behavior and parameters, especially the purpose and processing of the + vectorize string, refer to the documentation of the synchronous + insertOne(Object,String) method. This asynchronous method inherits all functionalities + and behaviors from its synchronous counterpart, ensuring consistency across the API.

      +
      +
      Parameters:
      +
      document - The document to be inserted into the collection. The requirements and options regarding the + _id field and the document structure are identical to those described in the synchronous + version.
      +
      vectorize - The string expression that will be used to compute the vector embeddings. This parameter enables + the automatic generation of embeddings to be associated with the document, enhancing its + usefulness for vector-based operations within the database.
      +
      Returns:
      +
      A CompletableFuture that, when completed, provides the InsertOneResult indicating the + outcome of the insert operation. The future may complete normally with the insertion result or exceptionally + in case of an error. + +

      Example usage:

      +
      + 
      + // Asynchronously inserting a document with a vectorization expression
      + Document newDocument = new Document().append("title", "Async Insert with Vectorization").append("description", "Description for vectorization");
      + String vectorizationExpression = "Description for vectorization";
      + CompletableFuture<InsertOneResult> futureResult = collection.insertOneAsync(newDocument, vectorizationExpression);
      + futureResult.thenAccept(result -> System.out.println("Inserted document id: " + result.getInsertedId()))
      +              .exceptionally(error -> { System.err.println("Insertion failed: " + error.getMessage()); return null; });
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      insertMany

      +
      public InsertManyResult insertMany(List<? extends T> documents, + InsertManyOptions options)
      +
      Inserts a batch of documents into the collection concurrently, optimizing the insertion process for + large datasets. This method provides a powerful mechanism to insert multiple documents with customizable + concurrency levels and batch sizes, while also ensuring error handling and performance optimization. + +

      Validation: The method validates the input documents list for nullity and emptiness. It also + checks each document within the list to ensure none are null, throwing an IllegalArgumentException + if these conditions are not met.

      + +

      Concurrency and Ordering: If concurrent insertion is requested with ordered inserts (via + options), the method throws an IllegalArgumentException, as ordered operations cannot + be performed concurrently.

      + +

      Chunk Size and Maximum Insertions: The method checks if the specified chunk size exceeds the + maximum number of documents allowed for insertion in a single operation, throwing an + IllegalArgumentException if this limit is breached.

      + +

      Documents are then split into chunks, each processed in parallel, according to the concurrency level + specified in options. The results of these insertions are aggregated into a single + InsertManyResult.

      + +

      Timeout Handling: The method attempts to complete all insertion tasks within the specified + timeout. If tasks do not complete in time, a TimeoutException is thrown.

      + +

      Error Handling: Exceptions encountered during insertion or result aggregation are captured, + and a RuntimeException is thrown, indicating an issue with merging results into a single + InsertManyResult.

      + +

      Example usage: Inserting a list of 100 documents

      +
      + 
      + InsertManyOptions options = InsertManyOptions.builder()
      +   .ordered(false)     // required for concurrent processing
      +   .withConcurrency(5) // recommended
      +   .withChunkSize(20)  // maximum chunk size is 20
      +   .withTimeout(100)   // global timeout
      +   .build();
      + List<Document> documents = new ArrayList<>();
      + for (int i = 0; i < 100; i++) {
      +     documents.add(new Document().append("key" + i, "value" + i));
      + }
      + InsertManyResult result = collection.insertMany(documents, options);
      + System.out.println("Inserted document count: " + result.getInsertedIds().size());
      + 
      + 
      + +

      Performance Monitoring: Logs the total response time for the insert many operation, aiding + in performance analysis and optimization efforts.

      +
      +
      Parameters:
      +
      documents - A list of documents to be inserted. Must not be null or empty, and no document should + be null.
      +
      options - Detailed options for the insert many operation, including concurrency level, chunk size, + and whether the inserts should be ordered.
      +
      Returns:
      +
      An InsertManyResult object containing the IDs of all successfully inserted documents.
      +
      Throws:
      +
      IllegalArgumentException - if the documents list is null or empty, any document is null, or if + the options specified are invalid.
      +
      RuntimeException - if there is an error in merging the results of concurrent insertions.
      +
      +
      +
    • +
    • +
      +

      insertManyAsync

      +
      public CompletableFuture<InsertManyResult> insertManyAsync(List<? extends T> documents, + InsertManyOptions options)
      +
      Asynchronously inserts a batch of documents into the collection with customizable insertion options. + This method is the asynchronous counterpart to insertMany(List, InsertManyOptions), allowing + for non-blocking operations. It employs default or specified InsertManyOptions to optimize the + insertion process for large datasets, utilizing concurrency and batch processing to enhance performance. + +

      Utilizing CompletableFuture, this method facilitates the insertion of multiple documents + without halting the execution of your application, making it well-suited for applications requiring + high throughput or responsiveness. For scenarios necessitating specific insertion behaviors, such as + concurrency levels and chunk sizes, the provided options parameter enables fine-tuned control + over the asynchronous operation.

      + +

      This method inherits all the validation, chunking, and result aggregation logic from its synchronous + counterpart, ensuring consistent behavior and error handling, while extending functionality to support + asynchronous execution patterns.

      + +

      Usage: Recommended for inserting large numbers of documents or when the application's + workflow benefits from non-blocking operations. For simpler use cases or default settings, the overload + without options provides a more straightforward approach.

      + +

      Example usage: Asynchronously inserting a list of documents with custom options.

      +
      + 
      + List<Document> documents = new ArrayList<>();
      + for (int i = 0; i < 100; i++) {
      +     documents.add(new Document().append("key" + i, "value" + i));
      + }
      + InsertManyOptions options = new InsertManyOptions().setConcurrency(5).setChunkSize(20);
      + CompletableFuture<InsertManyResult> futureResult = collection.insertManyAsync(documents, options);
      + futureResult.thenAccept(result -> System.out.println("Inserted document count: " + result.getInsertedIds().size()))
      +             .exceptionally(error -> { System.err.println("Insertion failed: " + error.getMessage()); return null; });
      + 
      + 
      +
      +
      Parameters:
      +
      documents - A list of documents to be inserted. The list must not be null or empty, and no document + should be null.
      +
      options - Detailed options for the insert many operation, allowing customization of concurrency + level, chunk size, and insertion order.
      +
      Returns:
      +
      A CompletableFuture that, upon completion, contains the InsertManyResult indicating + the outcome of the insert operation. The future may complete normally with the insertion result + or exceptionally in case of an error.
      +
      Throws:
      +
      IllegalArgumentException - if the documents list is null or empty, or if any document is null.
      +
      +
      +
    • +
    • +
      +

      insertMany

      +
      public InsertManyResult insertMany(List<? extends T> documents)
      +
      Inserts a batch of documents into the collection using default insertion options. This method is a + simplified version of insertMany(List, InsertManyOptions), intended for use cases where + default settings for concurrency, chunk size, and insertion order are sufficient. It provides an + efficient way to insert multiple documents concurrently, optimizing the insertion process with + predefined settings. + +

      The default InsertManyOptions used by this method assumes non-concurrent (sequential) + insertion, with no specific chunk size or timeout constraints. This is suitable for general use + cases where the simplicity of invocation is prioritized over the customization of insertion + parameters. For more advanced control over the insertion process, including the ability to specify + concurrency levels, chunk sizes, and operation timeouts, use the overloaded + insertMany(List, InsertManyOptions) method.

      + +

      This method leverages the same underlying insertion logic as its overloaded counterpart, + ensuring consistent behavior and error handling. It automatically handles validation of the + input documents list, chunking of documents based on default settings, and aggregation of + insertion results into a single InsertManyResult.

      + +

      Usage: Ideal for inserting a collection of documents without the need for custom + insertion options. Simplifies the insertion process for basic use cases.

      +
      +
      Parameters:
      +
      documents - A list of documents to be inserted. Must not be null or empty, and no document should + be null.
      +
      Returns:
      +
      An InsertManyResult object containing the IDs of all successfully inserted documents.
      +
      Throws:
      +
      IllegalArgumentException - if the documents list is null or empty, or if any document is null.
      +
      RuntimeException - if there is an error in merging the results of concurrent insertions.
      +
      +
      +
    • +
    • +
      +

      insertMany

      +
      @SafeVarargs +public final InsertManyResult insertMany(T... documents)
      +
      Inserts a batch of documents into the collection using default insertion options. This method is a + simplified version of insertMany(List, InsertManyOptions), intended for use cases where + default settings for concurrency, chunk size, and insertion order are sufficient. It provides an + efficient way to insert multiple documents concurrently, optimizing the insertion process with + predefined settings. + +

      The default InsertManyOptions used by this method assumes non-concurrent (sequential) + insertion, with no specific chunk size or timeout constraints. This is suitable for general use + cases where the simplicity of invocation is prioritized over the customization of insertion + parameters. For more advanced control over the insertion process, including the ability to specify + concurrency levels, chunk sizes, and operation timeouts, use the overloaded + insertMany(List, InsertManyOptions) method.

      + +

      This method leverages the same underlying insertion logic as its overloaded counterpart, + ensuring consistent behavior and error handling. It automatically handles validation of the + input documents list, chunking of documents based on default settings, and aggregation of + insertion results into a single InsertManyResult.

      + +

      Usage: Ideal for inserting a collection of documents without the need for custom + insertion options. Simplifies the insertion process for basic use cases.

      +
      +
      Parameters:
      +
      documents - A list of documents to be inserted. Must not be null or empty, and no document should + be null.
      +
      Returns:
      +
      An InsertManyResult object containing the IDs of all successfully inserted documents.
      +
      Throws:
      +
      IllegalArgumentException - if the documents list is null or empty, or if any document is null.
      +
      RuntimeException - if there is an error in merging the results of concurrent insertions.
      +
      +
      +
    • +
    • +
      +

      insertManyAsync

      +
      public CompletableFuture<InsertManyResult> insertManyAsync(List<? extends T> documents)
      +
      Asynchronously inserts a batch of documents into the collection using default insertion options. This method + provides an asynchronous alternative to insertMany(List), facilitating non-blocking operations while + employing a simplified insertion process suited for general use cases. + +

      Utilizing CompletableFuture, this method allows the insertion of multiple documents without interrupting + the application's execution flow. It is particularly useful in scenarios requiring high throughput or when maintaining + application responsiveness is critical. The default insertion settings are applied, simplifying the operation and + making it accessible for basic insertion needs without the necessity for custom configuration.

      + +

      This method inherits the core logic and validations from its synchronous counterpart, ensuring consistent behavior + and error handling. It automatically manages the input documents list, applying default options for chunking and + concurrency, and aggregates the results into a single InsertManyResult asynchronously.

      + +

      Usage: Ideal for applications that benefit from asynchronous document insertion, especially when inserting + a large number of documents under default settings. This method simplifies asynchronous batch insertions, making it + straightforward to integrate into existing workflows.

      + +

      Example usage: Asynchronously inserting a list of 100 documents using default options.

      +
      + 
      + List<Document> documents = new ArrayList<>();
      + for (int i = 0; i < 100; i++) {
      +     documents.add(new Document().append("key" + i, "value" + i));
      + }
      + CompletableFuture<InsertManyResult> futureResult = collection.insertManyAsync(documents);
      + futureResult.thenAccept(result -> System.out.println("Inserted document count: " + result.getInsertedIds().size()))
      +             .exceptionally(error -> { System.err.println("Insertion failed: " + error.getMessage()); return null; });
      + 
      + 
      +
      +
      Parameters:
      +
      documents - A list of documents to be inserted. Must not be null or empty, and no document within the list should + be null.
      +
      Returns:
      +
      A CompletableFuture that, upon completion, contains the InsertManyResult indicating the + outcome of the insert operation. The future may complete with the insertion results or exceptionally in + case of an error.
      +
      Throws:
      +
      IllegalArgumentException - if the documents list is null or empty, or if any document is null.
      +
      +
      +
    • +
    • +
      +

      findOne

      +
      public Optional<T> findOne(Filter filter)
      +
      Attempts to find a single document within the collection that matches the given filter criteria. This method + efficiently locates the first document that fulfills the specified conditions, making it an optimal choice for + queries where a unique identifier or specific characteristics are used to identify a document. Its efficiency + stems from the ability to halt the search as soon as a matching document is found, potentially avoiding a full + collection scan. + +

      Utilizing a Filter instance to articulate the search criteria, this method sifts through the collection + to find a document that aligns with the provided conditions. The filter defines the parameters that a document + must satisfy to be deemed a match, encompassing a wide range of possible attributes and values specific to the + document structure and contents within the collection.

      + +

      In cases where the search does not yield a matching document, this method returns an empty Optional, + signifying the absence of a compatible document. This design choice facilitates more graceful error handling, + allowing callers to easily distinguish between the presence and absence of a match without resorting to exception + handling for non-existent documents. Consequently, client code can implement more robust and cleaner retrieval + logic by leveraging the Optional pattern.

      + +

      Example usage:

      +
      + 
      +  // Given a collection
      +  DataApiCollection<Document> collection;
      +  // Assuming a Document in the collection with an id field
      +  Document doc = new Document().id(1).append("name", "John Doe");
      +  // To find the document with the id 1
      +  Optional<Document> foundDoc = collection.findOne(Filters.eq("_id", 1));
      +  foundDoc.ifPresent(System.out::println);
      + 
      + 
      +
      +
      Parameters:
      +
      filter - The Filter instance encapsulating the search criteria used to pinpoint the desired document. + This object specifies the exact conditions that must be met for a document to be selected as a match.
      +
      Returns:
      +
      An Optional encapsulating the found document, if any, that meets the filter criteria. + If no document matches the specified conditions, an empty Optional is returned, ensuring + that retrieval operations can be performed safely without the concern of NoSuchElementException.
      +
      +
      +
    • +
    • +
      +

      findOne

      +
      public Optional<T> findOne(Filter filter, + FindOneOptions findOneOptions)
      +
      Attempts to find a single document within the collection that matches the given filter criteria. + This method is designed to return the first document that satisfies the filter conditions, + making it particularly useful for retrieving specific documents when unique identifiers or + specific criteria are known. If no document matches the filter, the method will return an empty + Optional, indicating the absence of a matching document. This approach + avoids throwing exceptions for non-existent documents, thereby facilitating cleaner and more + robust error handling in client code. + +

      Example usage:

      +
      + 
      +  // Given a collection
      +  DataApiCollection<Document> collection;
      +  // Assuming a Document in the collection with an id field
      +  Document doc = new Document().id(1).append("name", "John Doe");
      +  // To find the document with the id 1
      +  FindOneOptions options2 = FindOneOptions.builder()
      +    .withIncludeSimilarity()     // return similarity in vector search
      +    .projections("_id", "name")  // return a subset of fields
      +    .build();
      +  Optional<Document> foundDoc = collection.findOne(Filters.eq("_id", 1), );
      +  foundDoc.ifPresent(System.out::println);
      + 
      + 
      +
      +
      Parameters:
      +
      filter - The Filter instance containing the criteria used to identify the desired document. + It specifies the conditions that a document must meet to be considered a match.
      +
      findOneOptions - The FindOneOptions instance containing additional options for the find operation,
      +
      Returns:
      +
      An Optional that contains the found document if one exists that matches + the filter criteria. Returns an empty Optional if no matching document is found, + enabling safe retrieval operations without the risk of NoSuchElementException.
      +
      +
      +
    • +
    • +
      +

      findOne

      +
      public Optional<T> findOne(FindOneOptions findOneOptions)
      +
      Syntax sugar to provide a findOne command without a filter @see findOne(Filter, FindOneOptions).
      +
      +
      Parameters:
      +
      findOneOptions - find one without a filter
      +
      Returns:
      +
      An Optional that contains the found document if one exists that matches + the filter criteria. Returns an empty Optional if no matching document is found, + enabling safe retrieval operations without the risk of NoSuchElementException.
      +
      +
      +
    • +
    • +
      +

      findOneASync

      +
      public CompletableFuture<Optional<T>> findOneASync(Filter filter)
      +
      Initiates an asynchronous search to find a single document that matches the given filter criteria. + This method leverages the functionality of to perform the + search, but it does so asynchronously, returning a CompletableFuture. This approach allows + the calling thread to remain responsive and perform other tasks while the search operation completes. + The result of the operation is wrapped in a CompletableFuture that, upon completion, will + contain an Optional instance. This instance either holds the document that matches the filter + criteria or is empty if no such document exists.
      +
      +
      Parameters:
      +
      filter - The Filter specifying the conditions that the document must meet to be considered + a match. This parameter determines how the search is conducted and what criteria the + document must satisfy to be retrieved.
      +
      Returns:
      +
      CompletableFuture that, when completed, will contain the result of + the search operation. If a matching document is found, the Optional is non-empty; + otherwise, it is empty to indicate the absence of a matching document. This future allows for + non-blocking operations and facilitates the integration of asynchronous programming patterns.
      +
      +
      +
    • +
    • +
      +

      findOneASync

      +
      public CompletableFuture<Optional<T>> findOneASync(Filter filter, + FindOneOptions findOneOptions)
      +
      Asynchronously attempts to find a single document within the collection that matches the given filter criteria, + utilizing the specified FindOneOptions for the query. This method offers a non-blocking approach to + querying the database, making it well-suited for applications requiring efficient I/O operations without + compromising the responsiveness of the application. + +

      By executing the search operation in an asynchronous manner, this method allows other tasks to proceed + concurrently, effectively utilizing system resources and improving application throughput. The query leverages + a Filter instance to define the search criteria, and FindOneOptions to specify query + customizations, such as projection or sort parameters.

      + +

      In cases where no document matches the filter, the method returns a CompletableFuture completed with + an empty Optional, thus avoiding exceptions for non-existent documents. This behavior ensures + a more graceful handling of such scenarios, allowing for cleaner and more robust client code by leveraging + the Optional pattern within asynchronous workflows.

      +
      +
      Parameters:
      +
      filter - The Filter instance encapsulating the criteria used to identify the desired document. + It defines the conditions that a document must meet to be considered a match.
      +
      findOneOptions - The FindOneOptions providing additional query configurations such as projection + and sort criteria to tailor the search operation.
      +
      Returns:
      +
      A CompletableFuture that, upon completion, contains an Optional + with the found document if one exists matching the filter criteria. If no matching document is found, + a completed future with an empty Optional is returned, facilitating safe asynchronous retrieval. + +

      Example usage:

      +
      + 
      + Filter filter = Filters.eq("id", 1);
      + FindOneOptions options = FindOneOptions.builder().projection("name");
      + CompletableFuture<Optional<Document>> futureDoc = collection.findOneASync(filter, options);
      + futureDoc.thenAccept(doc -> doc.ifPresent(System.out::println));
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      findById

      +
      public Optional<T> findById(Object id)
      +
      Retrieves a document by its identifier from the collection. +

      + This method searches for a document with the specified id. If a matching document is found, + it is returned wrapped in an Optional, otherwise, an empty Optional is returned. + This approach provides a null-safe way to handle the presence or absence of a document. +

      +
      +
      Parameters:
      +
      id - The identifier of the document to find.
      +
      Returns:
      +
      An Optional containing the found document, or an empty Optional if no document + matches the provided id.
      +
      +
      +
    • +
    • +
      +

      find

      +
      public FindIterable<T> find(Filter filter, + FindOptions options)
      +
      Finds all documents in the collection.
      +
      +
      Parameters:
      +
      filter - the query filter
      +
      options - options of find one
      +
      Returns:
      +
      the find iterable interface
      +
      +
      +
    • +
    • +
      +

      find

      +
      public FindIterable<T> find()
      +
      Retrieves all documents in the collection. +

      + This method returns an iterable interface that allows iterating over all documents in the collection, + without applying any filters. It leverages the default FindOptions for query execution. +

      +
      +
      Returns:
      +
      A FindIterable for iterating over all documents in the collection.
      +
      +
      +
    • +
    • +
      +

      find

      +
      public FindIterable<T> find(Filter filter)
      +
      Retrieves documents in the collection that match the specified filter. +

      + This method returns an iterable interface for documents that meet the criteria defined by the filter. + It uses default FindOptions for query execution, allowing for customization of the query if needed. +

      +
      +
      Parameters:
      +
      filter - The query filter to apply when retrieving documents.
      +
      Returns:
      +
      A FindIterable for iterating over the documents that match the filter.
      +
      +
      +
    • +
    • +
      +

      find

      +
      public FindIterable<T> find(Filter filter, + float[] vector, + int limit)
      +
      Finds documents in the collection that match the specified filter and sorts them based on their similarity + to a provided vector, limiting the number of results returned. +

      + This method is particularly useful for vector-based search operations where documents are ranked according + to their distance from a reference vector. The limit parameter controls the maximum number of documents + to return, allowing for efficient retrieval of the most relevant documents. +

      +
      +
      Parameters:
      +
      filter - The query filter to apply when retrieving documents.
      +
      vector - A float array representing the vector used to sort the documents.
      +
      limit - The maximum number of documents to return.
      +
      Returns:
      +
      A FindIterable for iterating over the sorted and limited documents.
      +
      +
      +
    • +
    • +
      +

      find

      +
      public FindIterable<T> find(float[] vector, + int limit)
      +
      Finds documents in the collection that match the specified filter and sorts them based on their similarity + to a provided vector, limiting the number of results returned. +

      + This method is particularly useful for vector-based search operations where documents are ranked according + to their distance from a reference vector. The limit parameter controls the maximum number of documents + to return, allowing for efficient retrieval of the most relevant documents. +

      +
      +
      Parameters:
      +
      vector - A float array representing the vector used to sort the documents.
      +
      limit - The maximum number of documents to return.
      +
      Returns:
      +
      A FindIterable for iterating over the sorted and limited documents.
      +
      +
      +
    • +
    • +
      +

      find

      +
      public FindIterable<T> find(Filter filter, + String vectorize, + int limit)
      +
      Finds documents in the collection that match the specified filter and sorts them based on their similarity + to a provided vector, limiting the number of results returned. +

      Note : This feature is under current development.

      +

      + This method leverage the 'vectorization' to compute the embeddings on the fly in order to execute the search. +

      +
      +
      Parameters:
      +
      filter - The query filter to apply when retrieving documents.
      +
      vectorize - A float array representing the vector used to sort the documents.
      +
      limit - The maximum number of documents to return.
      +
      Returns:
      +
      A FindIterable for iterating over the sorted and limited documents.
      +
      +
      +
    • +
    • +
      +

      find

      +
      public FindIterable<T> find(FindOptions options)
      +
      Finds all documents in the collection, applying the specified find options. +

      + This method allows for detailed control over the query execution through FindOptions, which can + specify sorting, projection, limits, and other query parameters. If no filter is applied, all documents + in the collection are considered. +

      +
      +
      Parameters:
      +
      options - The FindOptions to apply when executing the find operation.
      +
      Returns:
      +
      A FindIterable for iterating over the documents according to the specified options.
      +
      +
      +
    • +
    • +
      +

      findPage

      +
      public Page<T> findPage(Filter filter, + FindOptions options)
      +
      Executes a paginated 'find' query on the collection using the specified filter and find options. +

      + This method constructs and executes a command to fetch a specific page of documents from the collection that match + the provided filter criteria. It allows for detailed control over the query through FindOptions, such as sorting, + projection, pagination, and more. The result is wrapped in a Page object, which includes the documents found, + the page size, and the state for fetching subsequent pages. +

      +

      + Pagination is facilitated by the skip, limit, and pageState parameters within FindOptions, + enabling efficient data retrieval in scenarios where the total dataset is too large to be fetched in a single request. + Optionally, similarity scoring can be included if includeSimilarity is set, which is useful for vector-based search queries. +

      +

      + The method processes the command's response, mapping each document to the specified document class and collecting them into a list. + This list, along with the maximum page size and the next page state, is used to construct the Page object returned by the method. +

      +
      +
      Parameters:
      +
      filter - The filter criteria used to select documents from the collection.
      +
      options - The FindOptions providing additional query parameters, such as sorting and pagination.
      +
      Returns:
      +
      A Page object containing the documents that match the query, along with pagination information.
      +
      +
      +
    • +
    • +
      +

      findPageASync

      +
      public CompletableFuture<Page<T>> findPageASync(Filter filter, + FindOptions options)
      +
      Executes a paginated 'find' query on the collection using the specified filter and find options asynchronously. +

      + This method constructs and executes a command to fetch a specific page of documents from the collection that match + the provided filter criteria. It allows for detailed control over the query through FindOptions, such as sorting, + projection, pagination, and more. The result is wrapped in a Page object, which includes the documents found, + the page size, and the state for fetching subsequent pages. +

      +

      + Pagination is facilitated by the skip, limit, and pageState parameters within FindOptions, + enabling efficient data retrieval in scenarios where the total dataset is too large to be fetched in a single request. + Optionally, similarity scoring can be included if includeSimilarity is set, which is useful for vector-based search queries. +

      +

      + The method processes the command's response, mapping each document to the specified document class and collecting them into a list. + This list, along with the maximum page size and the next page state, is used to construct the Page object returned by the method. +

      +
      +
      Parameters:
      +
      filter - The filter criteria used to select documents from the collection.
      +
      options - The FindOptions providing additional query parameters, such as sorting and pagination.
      +
      Returns:
      +
      A Page object containing the documents that match the query, along with pagination information.
      +
      +
      +
    • +
    • +
      +

      distinct

      +
      public <F> DistinctIterable<T,F> distinct(String fieldName, + Class<F> resultClass)
      +
      Gets the distinct values of the specified field name. + The iteration is performed at CLIENT-SIDE and will exhaust all the collections elements.
      +
      +
      Type Parameters:
      +
      F - the target type of the iterable.
      +
      Parameters:
      +
      fieldName - the field name
      +
      resultClass - the class to cast any distinct items into.
      +
      Returns:
      +
      an iterable of distinct values
      +
      +
      +
    • +
    • +
      +

      distinct

      +
      public <F> DistinctIterable<T,F> distinct(String fieldName, + Filter filter, + Class<F> resultClass)
      +
      Gets the distinct values of the specified field name.
      +
      +
      Type Parameters:
      +
      F - the target type of the iterable.
      +
      Parameters:
      +
      fieldName - the field name
      +
      filter - the query filter
      +
      resultClass - the class to cast any distinct items into.
      +
      Returns:
      +
      an iterable of distinct values
      +
      +
      +
    • +
    • +
      +

      countDocuments

      +
      public int countDocuments(int upperBound) + throws TooManyDocumentsToCountException
      +
      Counts the number of documents in the collection. + +

      + Takes in a `upperBound` option which dictates the maximum number of documents that may be present before a + TooManyDocumentsToCountException is thrown. If the limit is higher than the highest limit accepted by the + Data API, a TooManyDocumentsToCountException will be thrown anyway (i.e. `1000`). +

      +

      + Count operations are expensive: for this reason, the best practice is to provide a reasonable `upperBound` + according to the caller expectations. Moreover, indiscriminate usage of count operations for sizeable amounts + of documents (i.e. in the thousands and more) is discouraged in favor of alternative application-specific + solutions. Keep in mind that the Data API has a hard upper limit on the amount of documents it will count, + and that an exception will be thrown by this method if this limit is encountered. +

      +
      +
      Parameters:
      +
      upperBound - The maximum number of documents to count.
      +
      Returns:
      +
      The number of documents in the collection.
      +
      Throws:
      +
      TooManyDocumentsToCountException - If the number of documents counted exceeds the provided limit.
      +
      +
      +
    • +
    • +
      +

      estimatedDocumentCount

      +
      public long estimatedDocumentCount()
      +
      Calling an estimatedDocumentCount with default options. @see estimatedDocumentCount(EstimatedCountDocumentsOptions)
      +
      +
      Returns:
      +
      the estimated number of documents in the collection.
      +
      +
      +
    • +
    • +
      +

      estimatedDocumentCount

      +
      public long estimatedDocumentCount(EstimatedCountDocumentsOptions options)
      +
      Executes the "estimatedDocumentCount" command to estimate the number of documents + in a collection. +

      + This method sends a command to estimate the document count and parses the count + from the command's response. It handles the execution of the command and the extraction + of the document count from the response. +

      +
      +
      Parameters:
      +
      options - the options to apply to the operation
      +
      Returns:
      +
      the estimated number of documents in the collection.
      +
      +
      +
    • +
    • +
      +

      countDocuments

      +
      public int countDocuments(Filter filter, + int upperBound, + CountDocumentsOptions options) + throws TooManyDocumentsToCountException
      +
      Counts the number of documents in the collection with a filter. + +

      + Takes in a `upperBound` option which dictates the maximum number of documents that may be present before a + TooManyDocumentsToCountException is thrown. If the limit is higher than the highest limit accepted by the + Data API, a TooManyDocumentsToCountException will be thrown anyway (i.e. `1000`). +

      +

      + Count operations are expensive: for this reason, the best practice is to provide a reasonable `upperBound` + according to the caller expectations. Moreover, indiscriminate usage of count operations for sizeable amounts + of documents (i.e. in the thousands and more) is discouraged in favor of alternative application-specific + solutions. Keep in mind that the Data API has a hard upper limit on the amount of documents it will count, + and that an exception will be thrown by this method if this limit is encountered. +

      +
      +
      Parameters:
      +
      filter - A filter to select the documents to count. If not provided, all documents will be counted.
      +
      upperBound - The maximum number of documents to count.
      +
      options - overriding options for the count operation.
      +
      Returns:
      +
      The number of documents in the collection.
      +
      Throws:
      +
      TooManyDocumentsToCountException - If the number of documents counted exceeds the provided limit.
      +
      +
      +
    • +
    • +
      +

      countDocuments

      +
      public int countDocuments(Filter filter, + int upperBound) + throws TooManyDocumentsToCountException
      +
      Implementation of the @see countDocuments(Filter, int, CountDocumentsOptions) method with default options.
      +
      +
      Parameters:
      +
      filter - filter to count
      +
      upperBound - The maximum number of documents to count. It must be lower than the maximum limit accepted by the Data API.
      +
      Returns:
      +
      The number of documents in the collection.
      +
      Throws:
      +
      TooManyDocumentsToCountException - If the number of documents counted exceeds the provided limit.
      +
      +
      +
    • +
    • +
      +

      deleteOne

      +
      public DeleteResult deleteOne(Filter filter)
      +
      Removes at most one document from the collection that matches the given filter. + If no documents match, the collection is not modified.
      +
      +
      Parameters:
      +
      filter - the query filter to apply the delete operation
      +
      Returns:
      +
      the result of the remove one operation
      +
      +
      +
    • +
    • +
      +

      deleteOne

      +
      public DeleteResult deleteOne(Filter filter, + DeleteOneOptions deleteOneOptions)
      +
      Removes at most one document from the collection that matches the given filter. + If no documents match, the collection is not modified.
      +
      +
      Parameters:
      +
      filter - the query filter to apply the delete operation
      +
      deleteOneOptions - the option to driver the deletes (here sort)
      +
      Returns:
      +
      the result of the remove one operation
      +
      +
      +
    • +
    • +
      +

      deleteMany

      +
      public DeleteResult deleteMany(Filter filter, + DeleteManyOptions options)
      +
      Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
      +
      +
      Parameters:
      +
      filter - the query filter to apply the delete operation
      +
      options - the options to apply to the operation
      +
      Returns:
      +
      the result of the remove many operation
      +
      +
      +
    • +
    • +
      +

      deleteMany

      +
      public DeleteResult deleteMany(Filter filter)
      +
      Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
      +
      +
      Parameters:
      +
      filter - the query filter to apply the delete operation
      +
      Returns:
      +
      the result of the remove many operation
      +
      +
      +
    • +
    • +
      +

      deleteAll

      +
      public DeleteResult deleteAll()
      +
      Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
      +
      +
      Returns:
      +
      the result of the remove many operation
      +
      +
      +
    • +
    • +
      +

      exists

      +
      public boolean exists()
      +
      Checks if the specified collection exists within the current namespace. + +

      + This method delegates the existence check to the existCollection method of the associated + namespace, evaluates the existence based on the collection's name, as retrieved by getName(). +

      +
      +
      Returns:
      +
      true if the collection exists within the namespace, false otherwise.
      +
      +
      +
    • +
    • +
      +

      drop

      +
      public void drop()
      +
      Delete the current collection and all documents that its contains.
      +
      +
    • +
    • +
      +

      findOneAndReplace

      +
      public Optional<T> findOneAndReplace(Filter filter, + T replacement)
      +
      Atomically find a document and replace it.
      +
      +
      Parameters:
      +
      filter - the query filter to apply the replace operation
      +
      replacement - the replacement document
      +
      Returns:
      +
      the document that was replaced. Depending on the value of the returnOriginal property, this will either be the document as it was before the update or as it is after the update. If no documents matched the query filter, then null will be returned
      +
      +
      +
    • +
    • +
      +

      findOneAndReplace

      +
      public Optional<T> findOneAndReplace(Filter filter, + T replacement, + FindOneAndReplaceOptions options)
      +
      Atomically find a document and replace it. + +

      Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.

      +
      +
      Parameters:
      +
      filter - the query filter to apply the replace operation
      +
      replacement - the replacement document
      +
      options - the options to apply to the operation
      +
      Returns:
      +
      the document that was replaced. Depending on the value of the returnOriginal property, this will either be the + document as it was before the update or as it is after the update. If no documents matched the query filter, then null will be + returned
      +
      +
      +
    • +
    • +
      +

      replaceOne

      +
      public UpdateResult replaceOne(Filter filter, + T replacement)
      +
      Replace a single document on the collection with a new one, + optionally inserting a new document if no match is found.
      +
      +
      Parameters:
      +
      filter - the query filter to apply the replace operation
      +
      replacement - the replacement document
      +
      Returns:
      +
      result of the replace one operation
      +
      +
      +
    • +
    • +
      +

      replaceOne

      +
      public UpdateResult replaceOne(Filter filter, + T replacement, + ReplaceOneOptions replaceOneOptions)
      +
      Replace a document in the collection according to the specified arguments.
      +
      +
      Parameters:
      +
      filter - the query filter to apply the replace operation
      +
      replacement - the replacement document
      +
      replaceOneOptions - the options to apply to the replace operation
      +
      Returns:
      +
      the result of the replace one operation
      +
      +
      +
    • +
    • +
      +

      findOneAndUpdate

      +
      public Optional<T> findOneAndUpdate(Filter filter, + Update update)
      +
      Atomically find a document and update it. + +

      Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.

      +
      +
      Parameters:
      +
      filter - a document describing the query filter, which may not be null.
      +
      update - a document describing the update, which may not be null. The update to apply must include at least one update operator.
      +
      Returns:
      +
      the document that was updated before the update was applied. If no documents matched the query filter, then null will be + returned
      +
      +
      +
    • +
    • +
      +

      findOneAndUpdate

      +
      public Optional<T> findOneAndUpdate(Filter filter, + Update update, + FindOneAndUpdateOptions options)
      +
      Atomically find a document and update it.
      +
      +
      Parameters:
      +
      filter - a document describing the query filter, which may not be null.
      +
      update - a document describing the update, which may not be null. The update to apply must include at least one update + operator.
      +
      options - the options to apply to the operation
      +
      Returns:
      +
      the document that was updated. Depending on the value of the returnOriginal property, this will either be the + document as it was before the update or as it is after the update. If no documents matched the query filter, then null will be + returned
      +
      +
      +
    • +
    • +
      +

      updateOne

      +
      public UpdateResult updateOne(Filter filter, + Update update)
      +
      Update a single document in the collection according to the specified arguments.
      +
      +
      Parameters:
      +
      filter - a document describing the query filter, which may not be null.
      +
      update - a document describing the update, which may not be null. The update to apply must include at least one update operator.
      +
      Returns:
      +
      the result of the update one operation
      +
      +
      +
    • +
    • +
      +

      updateOne

      +
      public UpdateResult updateOne(Filter filter, + Update update, + UpdateOneOptions updateOptions)
      +
      Update a single document in the collection according to the specified arguments.
      +
      +
      Parameters:
      +
      filter - a document describing the query filter, which may not be null.
      +
      update - a document describing the update, which may not be null. The update to apply must include at least one update operator.
      +
      updateOptions - the options to apply to the update operation
      +
      Returns:
      +
      the result of the update one operation
      +
      +
      +
    • +
    • +
      +

      updateMany

      +
      public UpdateResult updateMany(Filter filter, + Update update)
      +
      Update all documents in the collection according to the specified arguments.
      +
      +
      Parameters:
      +
      filter - a document describing the query filter, which may not be null.
      +
      update - a document describing the update, which may not be null. The update to apply must include only update operators.
      +
      Returns:
      +
      the result of the update many operation
      +
      +
      +
    • +
    • +
      +

      updateMany

      +
      public UpdateResult updateMany(Filter filter, + Update update, + UpdateManyOptions options)
      +
      Update all documents in the collection according to the specified arguments.
      +
      +
      Parameters:
      +
      filter - a document describing the query filter, which may not be null.
      +
      update - a document describing the update, which may not be null. The update to apply must include only update operators.
      +
      options - the options to apply to the update operation
      +
      Returns:
      +
      the result of the update many operation
      +
      +
      +
    • +
    • +
      +

      findOneAndDelete

      +
      public Optional<T> findOneAndDelete(Filter filter)
      +
      Atomically find a document and remove it.
      +
      +
      Parameters:
      +
      filter - the query filter to find the document with
      +
      Returns:
      +
      the document that was removed. If no documents matched the query filter, then null will be returned
      +
      +
      +
    • +
    • +
      +

      findOneAndDeleteAsync

      +
      public CompletableFuture<Optional<T>> findOneAndDeleteAsync(Filter filter)
      +
      Delete and return a document asynchronous.
      +
      +
      Parameters:
      +
      filter - filter to delete
      +
      Returns:
      +
      the document that was removed. If no documents matched the query filter, then null will be returned
      +
      +
      +
    • +
    • +
      +

      findOneAndDelete

      +
      public Optional<T> findOneAndDelete(Filter filter, + FindOneAndDeleteOptions options)
      +
      Atomically find a document and remove it.
      +
      +
      Parameters:
      +
      filter - the query filter to find the document with
      +
      options - the options to apply to the operation
      +
      Returns:
      +
      the document that was removed. If no documents matched the query filter, then null will be returned
      +
      +
      +
    • +
    • +
      +

      bulkWrite

      +
      public BulkWriteResult bulkWrite(List<Command> commands)
      +
      Executes a mix of inserts, updates, replaces, and deletes.
      +
      +
      Parameters:
      +
      commands - list of commands to run
      +
      Returns:
      +
      the result of the bulk write
      +
      +
      +
    • +
    • +
      +

      bulkWrite

      +
      public BulkWriteResult bulkWrite(List<Command> commands, + BulkWriteOptions options)
      +
      Executes a mix of inserts, updates, replaces, and deletes.
      +
      +
      Parameters:
      +
      commands - list of commands to run
      +
      options - if requests must be ordered or not
      +
      Returns:
      +
      the result of the bulk write
      +
      +
      +
    • +
    • +
      +

      registerListener

      +
      @Deprecated +public void registerListener(String logger, + CommandObserver commandObserver)
      +
      Deprecated.
      +
      Register a listener to execute commands on the collection. Please now use CommandOptions.
      +
      +
      Parameters:
      +
      logger - name for the logger
      +
      commandObserver - class for the logger
      +
      +
      +
    • +
    • +
      +

      deleteListener

      +
      @Deprecated +public void deleteListener(String name)
      +
      Deprecated.
      +
      Register a listener to execute commands on the collection. Please now use CommandOptions.
      +
      +
      Parameters:
      +
      name - name for the observer
      +
      +
      +
    • +
    • +
      +

      getApiEndpoint

      +
      protected String getApiEndpoint()
      +
      The subclass should provide the endpoint, url to post request.
      +
      +
      Specified by:
      +
      getApiEndpoint in class AbstractCommandRunner
      +
      Returns:
      +
      url on which to post the request
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIClient.html b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIClient.html new file mode 100644 index 0000000..c785305 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIClient.html @@ -0,0 +1,555 @@ + + + + +DataAPIClient (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataAPIClient

+
+
java.lang.Object +
com.datastax.astra.client.DataAPIClient
+
+
+
+
public class DataAPIClient +extends Object
+
Serves as the primary entry point to the Data API client, offering streamlined access to the functionalities + provided by the Data API, whether deployed within Astra environments or on-premise DataStax Enterprise installations. +

+ This client aims to simplify interactions with the Data API through a user-friendly, high-level API design. It + supports fluent API patterns, builder mechanisms for complex configurations, and employs idiomatic method naming + conventions to enhance readability and ease of use. The design philosophy of this client closely mirrors that of + the established MongoDB API, providing a familiar experience to developers accustomed to MongoDB's client interface. +

+

+ Through this client, users can perform a wide range of operations, from basic data manipulation in databases and + collections to more advanced administrative tasks. Administrative capabilities, such as database creation and + namespace management, are available to users with the appropriate administrative privileges. +

+ +

Example usage:

+
+ 
+ // Initialize the client with default settings
+ DataAPIClient client = new DataAPIClient("yourAuthTokenHere");
+
+ // Initialize the client with custom HTTP configuration
+ DataAPIClient clientWithCustomConfig = new DataAPIClient("yourAuthTokenHere", DataAPIOptions.builder()
+                 .withHttpRequestTimeout(1000) // Request timeout in milliseconds
+                 .withHttpConnectTimeout(10) // Connection timeout in milliseconds
+                 .withHttpVersion(HttpClient.Version.HTTP_2) // HTTP protocol version
+                 .withDestination("ASTRA") // Target destination, e.g., Astra
+                 .build());
+ 
+ 
+ + This documentation highlights the ease of starting with the DataAPIClient, whether opting for a quick setup with + default configurations or a more tailored approach via detailed HTTP client settings. The examples demonstrate + both the straightforward initialization process and the method to apply fine-grained configurations for developers' + specific needs.
+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
    +
    Constructs a DataAPIClient instance using the specified authentication token.
    +
    +
    DataAPIClient(String token, + DataAPIOptions options)
    +
    +
    Constructs a DataAPIClient with specified authentication token and HTTP client configuration options.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    Retrieves an administration client specific to Astra deployments.
    +
    + +
    getAdmin(String superUserToken)
    +
    +
    Retrieves an administration client capable of performing CRUD operations on databases, requiring a token with + advanced privileges.
    +
    + +
    getDatabase(String apiEndpoint)
    +
    +
    Retrieves a database client configured to interact with the Data API at the specified API endpoint.
    +
    + +
    getDatabase(String apiEndpoint, + String namespace)
    +
    +
    Creates and returns a database client configured to interact with the Data API at the specified API endpoint + and within the given namespace.
    +
    + +
    getDatabase(UUID databaseId)
    +
    +
    Retrieves a client for interacting with a specified database using its unique identifier.
    +
    + +
    getDatabase(UUID databaseId, + String namespace)
    +
    +
    Retrieves a client for a specific database, enabling interactions with the Data API.
    +
    + +
    getDatabase(UUID databaseId, + String namespace, + String region)
    +
    +
    Retrieves a client for a specific database, enabling interactions with the Data API.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DataAPIClient

      +
      public DataAPIClient(String token)
      +
      Constructs a DataAPIClient instance using the specified authentication token. This constructor + initializes the client with default DataAPIOptions for its configuration. +

      + The provided token is used for authenticating HTTP requests made by this client. It is essential for accessing + secured resources. If specific HTTP configurations are required (e.g., custom timeouts, HTTP version), use the + other constructor that accepts both a token and a DataAPIOptions instance. +

      +

      + This constructor is suitable for scenarios where default client settings are sufficient and no advanced + configuration is needed. It simplifies the initialization process for quick setup and use. +

      + +

      Example usage:

      +
      + 
      + String myAuthToken = "AstraCS:...";
      + DataAPIClient client = new DataAPIClient(myAuthToken);
      + // Now the client is ready to make authenticated requests with default settings
      + 
      + 
      +
      +
      Parameters:
      +
      token - The authentication token to be used for HTTP requests. This token should follow the format expected + by the server, typically starting with "AstraCS:.." for Astra environments.
      +
      +
      +
    • +
    • +
      +

      DataAPIClient

      +
      public DataAPIClient(String token, + DataAPIOptions options)
      +
      Constructs a DataAPIClient with specified authentication token and HTTP client configuration options. +

      + This constructor allows for the explicit specification of both the authentication token and the advanced + HTTP configuration settings. The authentication token is essential for securing access to the API, while the + DataAPIOptions object provides granular control over the HTTP client's behavior, including timeouts, + HTTP version, and other properties impacting connectivity and request handling. +

      +

      + It is recommended to use this constructor when you need to customize the HTTP client beyond the default + configuration, such as setting custom timeouts or specifying a particular HTTP protocol version. The provided + Assert methods ensure that neither the token nor the options are null or empty, enforcing the presence of + essential configuration details at the time of client initialization. +

      + +

      Example usage:

      +
      + 
      + String myAuthToken = "AstraCS:...";
      + DataAPIOptions myOptions = DataAPIOptions.builder()
      +      .withHttpRequestTimeout(1000)
      +      .withHttpConnectTimeout(500)
      +      .withHttpVersion(HttpClient.Version.HTTP_2)
      +      .build();
      +
      + DataAPIClient myClient = new DataAPIClient(myAuthToken, myOptions);
      + // The client is now ready to perform actions with custom configurations.
      + 
      + 
      +
      +
      Parameters:
      +
      token - The authentication token to be used for securing API access. This token should adhere to the + format required by the API, typically starting with "AstraCS:.." for Astra environments.
      +
      options - The DataAPIOptions specifying the detailed HTTP client configurations, offering + customization over aspects such as timeouts and protocol versions.
      +
      Throws:
      +
      IllegalArgumentException - if the token is empty or null, or if the options are null.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getAdmin

      +
      public AstraDBAdmin getAdmin()
      +
      Retrieves an administration client specific to Astra deployments. This client is intended for performing + administrative tasks such as creating databases. It requires the use of a token with sufficient privileges. +

      + To use this method effectively, the provided authentication token must be associated with a user having + elevated privileges, such as a Database Administrator or Organization Administrator. This ensures that + the client has the necessary permissions to execute administrative operations within the Astra environment. +

      +

      + The administration client provides a programmatic interface for managing various aspects of the Astra + deployment, enabling tasks such as database creation, user management, and configuration adjustments + without the need for direct interaction with the Astra UI. +

      + +

      Example usage:

      +
      + 
      + DataAPIClient apiClient = new DataAPIClient("AstraCS:your_admin_token_here");
      + AstraDBAdmin adminClient = apiClient.getAdmin();
      + // Use adminClient to perform administrative operations, e.g., create a database
      + 
      + 
      +
      +
      Returns:
      +
      An instance of AstraDBAdmin configured with the current authentication token, ready for + administrative operations.
      +
      Throws:
      +
      SecurityException - if the current token does not have the necessary administrative privileges.
      +
      +
      +
    • +
    • +
      +

      getAdmin

      +
      public AstraDBAdmin getAdmin(String superUserToken)
      +
      Retrieves an administration client capable of performing CRUD operations on databases, requiring a token with + advanced privileges. This method is designed for scenarios where administrative access is necessary beyond the + default token capabilities associated with the DataAPIClient. +

      + The provided superUserToken should be granted sufficient privileges to perform administrative operations, + such as creating, updating, and deleting databases. This typically involves tokens associated with roles like + Database Administrator or Organization Administrator within the Astra environment. +

      +

      + Utilizing this method allows for direct access to the Astra database's administrative functionalities, enabling + comprehensive management capabilities through the returned AstraDBAdmin client. This includes but is not + limited to database creation, modification, and deletion. +

      + +

      Example usage:

      +
      + 
      + String superUserToken = "AstraCS:super_user_token_here";
      + DataAPIClient apiClient = new DataAPIClient(superUserToken);
      + AstraDBAdmin adminClient = apiClient.getAdmin(superUserToken);
      + // Now you can use adminClient for administrative operations like creating a database
      + 
      + 
      +
      +
      Parameters:
      +
      superUserToken - A token with elevated privileges, enabling administrative actions within the Astra + environment. This token must be authorized to perform operations such as creating and managing databases.
      +
      Returns:
      +
      An instance of AstraDBAdmin, configured for administrative tasks with the provided user token.
      +
      Throws:
      +
      SecurityException - if the provided superUserToken lacks the necessary privileges for administrative operations.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(UUID databaseId, + String namespace)
      +
      Retrieves a client for a specific database, enabling interactions with the Data API. This method allows for + operations such as querying, updating, and managing data within the specified database and namespace. +

      + The databaseId parameter is a unique identifier for the target database. This ID ensures that operations + performed through the returned client are executed against the correct database instance within the Astra + environment or an on-premise DataStax Enterprise setup. +

      +

      + The namespace parameter specifies the namespace (often synonymous with "keyspace" in Cassandra terminology) + within the database to which the client will have access. Namespaces are used to organize and isolate data within + the database, providing a layer of abstraction and security. +

      + +

      Example usage:

      +
      + 
      + UUID databaseId = UUID.fromString("your-database-uuid-here");
      + String namespace = "your_namespace_here";
      + DataAPIClient apiClient = new DataAPIClient("yourAuthTokenHere");
      + Database databaseClient = apiClient.getDatabase(databaseId, namespace);
      + // Use databaseClient to perform data operations within the specified namespace
      + 
      + 
      +
      +
      Parameters:
      +
      databaseId - The unique identifier of the database to interact with.
      +
      namespace - The namespace within the specified database to which operations will be scoped.
      +
      Returns:
      +
      A Database client configured to interact with the specified database and namespace, allowing for + data manipulation and query operations.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(UUID databaseId, + String namespace, + String region)
      +
      Retrieves a client for a specific database, enabling interactions with the Data API. This method allows for + operations such as querying, updating, and managing data within the specified database and namespace.
      +
      +
      Parameters:
      +
      databaseId - The unique identifier of the database to interact with.
      +
      namespace - The namespace associated to this database
      +
      region - The cloud provider region where the database is deployed.
      +
      Returns:
      +
      A Database client configured to interact with the specified database and namespace, allowing for + data manipulation and query operations.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(UUID databaseId)
      +
      Retrieves a client for interacting with a specified database using its unique identifier. This client facilitates + direct communication with the Data API, enabling a range of operations such as querying, inserting, updating, and + deleting data within the database. This streamlined method provides access to the default namespace or keyspace. +

      + The databaseId serves as a unique identifier for the database within the Astra environment or an on-premise + DataStax Enterprise setup, ensuring that all operations through the client are correctly routed to the intended + database instance. +

      + +

      Example usage:

      +
      + 
      + UUID databaseId = UUID.fromString("123e4567-e89b-12d3-a456-426614174000");
      + DataAPIClient apiClient = new DataAPIClient("yourAuthTokenHere");
      + Database databaseClient = apiClient.getDatabase(databaseId);
      + // Perform data operations using the databaseClient
      + 
      + 
      +
      +
      Parameters:
      +
      databaseId - The unique identifier of the database for which to retrieve the client.
      +
      Returns:
      +
      A Database client that provides the ability to perform operations on the specified database.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(String apiEndpoint, + String namespace)
      +
      Creates and returns a database client configured to interact with the Data API at the specified API endpoint + and within the given namespace. This method facilitates operations such as querying, inserting, updating, and + deleting data by directly communicating with the Data API, allowing for a wide range of data manipulation + tasks in a specified namespace. +

      + The apiEndpoint parameter should be the URL of the API endpoint where the Data API is hosted. This + is typically a fully qualified URL that points to the Astra service or an on-premise DataStax Enterprise + deployment hosting the Data API. +

      +

      + The namespace parameter specifies the namespace (or keyspace in Cassandra terms) within the database + that the client will interact with. Namespaces help organize data within the database and provide a way to + isolate and manage access to data. +

      + +

      Example usage:

      +
      + 
      + String apiEndpoint = "https://example-astra-data-api.com";
      + String namespace = "my_keyspace";
      + DataAPIClient apiClient = new DataAPIClient("yourAuthTokenHere");
      + Database databaseClient = apiClient.getDatabase(apiEndpoint, namespace);
      + // Now you can use the databaseClient to perform operations within "my_keyspace"
      + 
      + 
      +
      +
      Parameters:
      +
      apiEndpoint - The URL of the Data API endpoint. This specifies the location of the API the client will connect to.
      +
      namespace - The namespace (or keyspace) within the database that the client will access and perform operations in.
      +
      Returns:
      +
      A Database client configured for the specified API endpoint and namespace, enabling data manipulation + and query operations within the targeted namespace.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(String apiEndpoint)
      +
      Retrieves a database client configured to interact with the Data API at the specified API endpoint. This method + enables direct communication with the Data API, facilitating a range of data manipulation operations such as querying, + inserting, updating, and deleting data. The client accesses the default namespace or keyspace for operations, unless + otherwise specified through additional configuration. +

      + The apiEndpoint parameter should be the URL of the Data API endpoint you wish to connect to. This URL + points to the location where the Data API is hosted, which could be an Astra cloud service or an on-premise DataStax + Enterprise instance. +

      +

      + Utilizing this method simplifies the process of connecting to the Data API by focusing on essential configuration, + making it particularly useful for scenarios where detailed namespace management is handled separately or not required. +

      + +

      Example usage:

      +
      + 
      + String apiEndpoint = "https://<database_id>-<database_region>.apps.astra.datastax.com";
      + DataAPIClient apiClient = new DataAPIClient("yourAuthTokenHere");
      + Database databaseClient = apiClient.getDatabase(apiEndpoint);
      + // The databaseClient is now ready to perform data operations at the specified API endpoint
      + 
      + 
      +
      +
      Parameters:
      +
      apiEndpoint - The URL of the Data API endpoint to connect to, specifying the API's location.
      +
      Returns:
      +
      A Database client tailored for interaction with the Data API at the provided API endpoint, + ready for executing data manipulation tasks.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIClients.html b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIClients.html new file mode 100644 index 0000000..4ac7950 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIClients.html @@ -0,0 +1,353 @@ + + + + +DataAPIClients (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataAPIClients

+
+
java.lang.Object +
com.datastax.astra.client.DataAPIClients
+
+
+
+
public class DataAPIClients +extends Object
+
Provides utility methods for initializing and configuring clients to interact with the Data API. This class + simplifies the creation of Data API clients by abstracting the complexities associated with configuring + clients for different environments and settings. + +

Depending on the application's requirements and the operational environment, DataAPIClients can + tailor the Data API client with appropriate configuration options such as authentication credentials, connection + timeouts, proxy settings, and more. This enables developers to quickly and easily set up their Data API clients + without delving into the intricate details of each configuration option.

+ +

Example Usage:

+
+ 
+ // Get you the client for a local deployment of Data API
+ DataAPIClient devClient = DataAPIClients.localClient();
+
+ // Get you the database for a local deployment of Data API
+ DataAPIClient devClient = DataAPIClients.localDatabase();
+
+ // Default target environment Astra Production
+ DataAPIClient devClient = DataAPIClients.astra("token");
+ 
+ 
+ +

Note: This class should be used as a starting point for initializing Data API clients. It is advisable to + review the specific configuration options relevant to your use case and adjust them accordingly.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      DEFAULT_ENDPOINT_LOCAL

      +
      public static final String DEFAULT_ENDPOINT_LOCAL
      +
      Default Http endpoint for local deployment.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      createForLocal

      +
      public static DataAPIClient createForLocal()
      +
      Creates and configures a DataAPIClient for interaction with a local instance of Stargate, a + data gateway for working with Apache Cassandra®. This method is specifically designed for scenarios + where the application is intended to communicate with a Stargate instance running locally, facilitating + development and testing workflows by providing easy access to local database resources.
      +
      +
      Returns:
      +
      A fully configured DataAPIClient ready for interacting with the local Stargate instance, equipped + with the necessary authentication token and targeting options for Cassandra. This client abstracts away + the complexities of direct database communication, providing a simplified interface for data operations.
      +
      +
      +
    • +
    • +
      +

      createDefaultLocalDatabase

      +
      public static Database createDefaultLocalDatabase()
      +
      Creates and configures a Database client specifically designed for interaction with a local instance + of Stargate. This method streamlines the process of setting up a client for local database interactions, + encapsulating both the creation of a DataAPIClient and its integration within a Database + abstraction. This setup is ideal for local development and testing, providing a straightforward path to + interact with Cassandra through Stargate with minimal setup.
      +
      +
      Returns:
      +
      A Database client ready for use with a local Stargate instance, fully configured for immediate + interaction with the database. This client enables developers to focus on their application logic rather + than the intricacies of database connectivity and command execution.
      +
      +
      +
    • +
    • +
      +

      create

      +
      public static DataAPIClient create(String token)
      +
      Creates a DataAPIClient configured for interaction with Astra, DataStax's cloud-native database + as a service. This method streamlines the client setup by requiring only an authentication token, handling + the other configuration details internally to ensure compatibility with Astra's API and endpoints. + +

      By specifying the destination as Astra in the DataAPIOptions, this method ensures that the + client is properly configured to communicate with Astra's infrastructure, leveraging the provided token + for authentication. This approach enables developers to quickly establish a connection to Astra for + database operations without manually setting up connection parameters and authentication details.

      +
      +
      Parameters:
      +
      token - The authentication token required for accessing Astra. This token should be treated + securely and not exposed in public code repositories or unsecured locations.
      +
      Returns:
      +
      A DataAPIClient instance ready for use with Astra, fully configured with the provided + authentication token and set to target Astra as its destination. + +

      Example usage:

      +
      + 
      + DataAPIClient astraClient = DataAPIClients.astra("my_astra_auth_token");
      + // Use astraClient for database operations
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      createForAstraDev

      +
      public static DataAPIClient createForAstraDev(String token)
      +
      Creates a DataAPIClient configured for interacting with Astra in a development environment. This + method simplifies the setup of a client specifically tailored for development purposes, where you might + need different configurations or less stringent security measures compared to a production environment. + The client is configured to target Astra's development environment, ensuring that operations do not + affect production data.
      +
      +
      Parameters:
      +
      token - The authentication token required for accessing Astra's development environment. This token + should have the necessary permissions for development activities and be protected accordingly.
      +
      Returns:
      +
      A DataAPIClient instance ready for development activities with Astra, configured with the + provided authentication token and targeting Astra's development environment. + +

      Example usage:

      +
      + 
      + DataAPIClient devClient = DataAPIClients.astraDev("your_astra_dev_token");
      + // Utilize devClient for development database operations
      + 
      + 
      +
      +
      +
    • +
    • +
      +

      createForAstraTest

      +
      public static DataAPIClient createForAstraTest(String token)
      +
      Creates a DataAPIClient specifically configured for interacting with Astra in a test environment. + This setup is ideal for testing scenarios, where isolation from development and production environments + is critical to ensure the integrity and stability of test results. By directing the client to Astra's + test environment, it facilitates safe, isolated testing of database interactions without risking the + alteration of development or production data.
      +
      +
      Parameters:
      +
      token - The authentication token required for accessing Astra's test environment. Ensure that this + token is designated for testing purposes to prevent unintended access to or effects on + non-test data and resources.
      +
      Returns:
      +
      A DataAPIClient instance specifically for use in testing scenarios with Astra, equipped + with the necessary authentication token and configured to target the test environment. + +

      Example usage:

      +
      + 
      + DataAPIClient testClient = DataAPIClients.astraTest("your_astra_test_token");
      + // Execute test database operations with testClient
      + 
      + 
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.DataAPIClientOptionsBuilder.html b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.DataAPIClientOptionsBuilder.html new file mode 100644 index 0000000..4276652 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.DataAPIClientOptionsBuilder.html @@ -0,0 +1,563 @@ + + + + +DataAPIOptions.DataAPIClientOptionsBuilder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataAPIOptions.DataAPIClientOptionsBuilder

+
+
java.lang.Object +
com.datastax.astra.client.DataAPIOptions.DataAPIClientOptionsBuilder
+
+
+
+
Enclosing class:
+
DataAPIOptions
+
+
+
public static class DataAPIOptions.DataAPIClientOptionsBuilder +extends Object
+
Builder for the DataAPIClientOptions.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DataAPIClientOptionsBuilder

      +
      public DataAPIClientOptionsBuilder()
      +
      Default constructor.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      withCaller

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withCaller(String callerName, + String callerVersion)
      +
      Builder pattern, update caller information. +o
      +
      +
      Parameters:
      +
      callerName - caller name in the user agent
      +
      callerVersion - caller version in the user agent
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withApiVersion

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withApiVersion(String apiVersion)
      +
      Builder pattern, update api version.
      +
      +
      Parameters:
      +
      apiVersion - api version
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withHttpRedirect

      + +
      Builder pattern, update http redirect
      +
      +
      Parameters:
      +
      redirect - http redirect
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withHtpVersion

      + +
      Builder pattern, update http version
      +
      +
      Parameters:
      +
      version - http version
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withHttpProxy

      + +
      Builder pattern, update http httpProxy
      +
      +
      Parameters:
      +
      httpProxy - http proxy
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withHttpRetryCount

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withHttpRetryCount(int retryCount)
      +
      Builder pattern, update http retry count
      +
      +
      Parameters:
      +
      retryCount - http retry count
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withMaxTimeMS

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withMaxTimeMS(long connectTimeout)
      +
      Builder pattern, update http request Timeout in millis
      +
      +
      Parameters:
      +
      connectTimeout - http request timeout in millis
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withEmbeddingAPIKey

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withEmbeddingAPIKey(String embeddingAPIKey)
      +
      Builder pattern, update http connection Timeout
      +
      +
      Parameters:
      +
      embeddingAPIKey - embedding API Key
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withHttpConnectTimeout

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withHttpConnectTimeout(int requestTimeout)
      +
      Builder pattern, update http connection Timeout
      +
      +
      Parameters:
      +
      requestTimeout - http request timeout
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withDestination

      + +
      Builder pattern, update http connection Timeout
      +
      +
      Parameters:
      +
      destination - data api destination
      +
      Returns:
      +
      self reference
      +
      +
      +
    • +
    • +
      +

      withHttpRetryDelayMillis

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withHttpRetryDelayMillis(int retryDelay)
      +
      Sets the delay between retry attempts when the number of retries is greater than 1. + This allows configuring the interval to wait before initiating a subsequent retry + after a failed attempt. The delay is specified in milliseconds. +

      + If not explicitly set, the default delay is defined by DEFAULT_RETRY_DELAY_MILLIS, + which is 100 milliseconds. +

      +

      + Usage of this method is crucial in scenarios where repeated requests are made and a + gentle back-off strategy is desired to reduce the load on the server or to handle temporary + network issues gracefully. +

      +
      +
      Parameters:
      +
      retryDelay - the delay between two retry attempts, expressed in milliseconds. + Must be a non-negative number.
      +
      Returns:
      +
      a reference to this builder, allowing for method chaining. + + Example usage: +
      + 
      + DataAPIClientOptions
      +   .builder()
      +   .withHttpRetryDelayMillis(200); // Sets a 200ms delay between retries.
      + 
      +
      +
      +
    • +
    • +
      +

      withMaxDocumentCount

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withMaxDocumentCount(int maxDocumentCount)
      +
      Sets the maximum number of documents that can be returned by the count function. +

      + If not explicitly set, the default value is defined by MAX_DOCUMENTS_COUNT, + which is 1000 documents. +

      +
      +
      Parameters:
      +
      maxDocumentCount - the maximum number of documents that can be returned by the count function. + Must be a positive number.
      +
      Returns:
      +
      a reference to this builder, allowing for method chaining. + + Example usage: +
      + 
      + DataAPIClientOptions
      +   .builder()
      +   .withMaxDocumentCount(2000); // Sets the maximum number of documents to 2000.
      + 
      +
      +
      +
    • +
    • +
      +

      withMaxPageSize

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withMaxPageSize(int maxPageSize)
      +
      Sets the maximum number of documents that can be returned in a single page. +

      + If not explicitly set, the default value is defined by MAX_PAGE_SIZE, + which is 20 documents. +

      +
      +
      Parameters:
      +
      maxPageSize - the maximum number of documents that can be returned in a single page. + Must be a positive number.
      +
      Returns:
      +
      a reference to this builder, allowing for method chaining. + + Example usage: +
      + 
      + DataAPIClientOptions
      +   .builder()
      +   .withMaxPageSize(50); // Sets the maximum page size to 50 documents.
      + 
      +
      +
      +
    • +
    • +
      +

      withMaxDocumentsInInsert

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withMaxDocumentsInInsert(int maxDocumentsInInsert)
      +
      Sets the maximum number of documents that can be inserted in a single operation. +

      + If not explicitly set, the default value is defined by MAX_DOCUMENTS_IN_INSERT, + which is 20 documents. +

      +
      +
      Parameters:
      +
      maxDocumentsInInsert - the maximum number of documents that can be inserted in a single operation. + Must be a positive number.
      +
      Returns:
      +
      a reference to this builder, allowing for method chaining. + + Example usage: +
      + 
      + DataAPIClientOptions
      +   .builder()
      +   .withMaxDocumentsInInsert(50); // Sets the maximum number of documents to insert to 50.
      + 
      +
      +
      +
    • +
    • +
      +

      withObserver

      +
      public DataAPIOptions.DataAPIClientOptionsBuilder withObserver(String name, + CommandObserver observer)
      +
      Allow to register a listener for the command.
      +
      +
      Parameters:
      +
      name - name of the observer
      +
      observer - observer to register
      +
      Returns:
      +
      instance of the command options
      +
      +
      +
    • +
    • +
      +

      withObserver

      + +
      Register an observer with its className.
      +
      +
      Parameters:
      +
      observer - command observer
      +
      Returns:
      +
      instance of the command options
      +
      +
      +
    • +
    • +
      +

      logRequests

      + +
      Help to enable loggin requests.
      +
      +
      Returns:
      +
      current reference
      +
      +
      +
    • +
    • +
      +

      build

      +
      public DataAPIOptions build()
      +
      Build the options.
      +
      +
      Returns:
      +
      options
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.DataAPIDestination.html b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.DataAPIDestination.html new file mode 100644 index 0000000..6759f02 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.DataAPIDestination.html @@ -0,0 +1,292 @@ + + + + +DataAPIOptions.DataAPIDestination (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum DataAPIOptions.DataAPIDestination

+
+
java.lang.Object +
java.lang.Enum<DataAPIOptions.DataAPIDestination> +
com.datastax.astra.client.DataAPIOptions.DataAPIDestination
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<DataAPIOptions.DataAPIDestination>, java.lang.constant.Constable
+
+
+
Enclosing class:
+
DataAPIOptions
+
+
+
public static enum DataAPIOptions.DataAPIDestination +extends Enum<DataAPIOptions.DataAPIDestination>
+
Represent the destination of the data API.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static DataAPIOptions.DataAPIDestination[] values()
      +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum type, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static DataAPIOptions.DataAPIDestination valueOf(String name)
      +
      Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum type has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.HttpProxy.html b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.HttpProxy.html new file mode 100644 index 0000000..eaef0d4 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.HttpProxy.html @@ -0,0 +1,166 @@ + + + + +DataAPIOptions.HttpProxy (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataAPIOptions.HttpProxy

+
+
java.lang.Object +
com.datastax.astra.client.DataAPIOptions.HttpProxy
+
+
+
+
Enclosing class:
+
DataAPIOptions
+
+
+
public static class DataAPIOptions.HttpProxy +extends Object
+
Subclass to represent an http proxy.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      HttpProxy

      +
      public HttpProxy(String hostname, + int port)
      +
      Default constructor.
      +
      +
      Parameters:
      +
      hostname - host name
      +
      port - roxy port
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.html new file mode 100644 index 0000000..0f3ffcb --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/DataAPIOptions.html @@ -0,0 +1,398 @@ + + + + +DataAPIOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataAPIOptions

+
+
java.lang.Object +
com.datastax.astra.client.DataAPIOptions
+
+
+
+
public class DataAPIOptions +extends Object
+
Options to set up the client for DataApiClient.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      DEFAULT_MAX_DOCUMENTS_COUNT

      +
      public static final int DEFAULT_MAX_DOCUMENTS_COUNT
      +
      Number of documents for a count.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_MAX_PAGE_SIZE

      +
      public static final int DEFAULT_MAX_PAGE_SIZE
      +
      Maximum number of documents in a page.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_MAX_CHUNK_SIZE

      +
      public static final int DEFAULT_MAX_CHUNK_SIZE
      +
      Maximum number of documents when you insert.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_CALLER_NAME

      +
      public static final String DEFAULT_CALLER_NAME
      +
      Default user agent.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_CALLER_VERSION

      +
      public static final String DEFAULT_CALLER_VERSION
      +
      Default user agent.
      +
      +
    • +
    • +
      +

      DEFAULT_CONNECT_TIMEOUT_MILLIS_SECONDS

      +
      public static final int DEFAULT_CONNECT_TIMEOUT_MILLIS_SECONDS
      +
      Default timeout for initiating connection.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_REQUEST_TIMEOUT_MILLIS_SECONDS

      +
      public static final int DEFAULT_REQUEST_TIMEOUT_MILLIS_SECONDS
      +
      Default timeout for initiating connection.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_RETRY_COUNT

      +
      public static final int DEFAULT_RETRY_COUNT
      +
      Default retry count.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_RETRY_DELAY_MILLIS

      +
      public static final int DEFAULT_RETRY_DELAY_MILLIS
      +
      Default retry delay.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_VERSION

      +
      public static final String DEFAULT_VERSION
      +
      path for json api.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/Database.html b/astra-db-java/1.2.0/com/datastax/astra/client/Database.html new file mode 100644 index 0000000..b017b7a --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/Database.html @@ -0,0 +1,687 @@ + + + + +Database (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Database

+
+ +
+
+
All Implemented Interfaces:
+
CommandRunner
+
+
+
public class Database +extends AbstractCommandRunner
+
A Data API database. This is the entry-point object for doing database-level + DML, such as creating/deleting collections, and for obtaining Collection + objects themselves. This class has a synchronous interface. +

+ A Database comes with an "API Endpoint", which implies a Database object + instance reaches a specific region (relevant point in case of multi-region + databases). +

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Database

      +
      public Database(String apiEndpoint, + String token)
      +
      Initialization with endpoint and apikey.
      +
      +
      Parameters:
      +
      apiEndpoint - api endpoint
      +
      token - api token
      +
      +
      +
    • +
    • +
      +

      Database

      +
      public Database(String apiEndpoint, + String token, + String namespace)
      +
      Initialization with endpoint and apikey.
      +
      +
      Parameters:
      +
      apiEndpoint - api endpoint
      +
      token - api token
      +
      namespace - namespace
      +
      +
      +
    • +
    • +
      +

      Database

      +
      public Database(String apiEndpoint, + String token, + String namespace, + DataAPIOptions options)
      +
      Initialization with endpoint and apikey.
      +
      +
      Parameters:
      +
      apiEndpoint - api endpoint
      +
      token - api token
      +
      namespace - namespace
      +
      options - setup of the clients with options
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getDatabaseAdmin

      +
      public DatabaseAdmin getDatabaseAdmin()
      +
      Access a database Admin client from the database
      +
      +
      Returns:
      +
      database admin
      +
      +
      +
    • +
    • +
      +

      getDatabaseAdmin

      +
      public DatabaseAdmin getDatabaseAdmin(String superUserToken)
      +
      Gets the name of the database.
      +
      +
      Parameters:
      +
      superUserToken - provide a token with a super-user role
      +
      Returns:
      +
      the database name
      +
      +
      +
    • +
    • +
      +

      listCollectionNames

      +
      public Stream<String> listCollectionNames()
      +
      Gets the names of all the collections in this database.
      +
      +
      Returns:
      +
      a stream containing all the names of all the collections in this database
      +
      +
      +
    • +
    • +
      +

      listCollections

      +
      public Stream<CollectionInfo> listCollections()
      +
      Finds all the collections in this database.
      +
      +
      Returns:
      +
      list of collection definitions
      +
      +
      +
    • +
    • +
      +

      collectionExists

      +
      public boolean collectionExists(String collection)
      +
      Evaluate if a collection exists.
      +
      +
      Parameters:
      +
      collection - namespace name.
      +
      Returns:
      +
      if namespace exists
      +
      +
      +
    • +
    • +
      +

      getCollection

      +
      public Collection<Document> getCollection(String collectionName)
      +
      Gets a collection.
      +
      +
      Parameters:
      +
      collectionName - the name of the collection to return
      +
      Returns:
      +
      the collection
      +
      Throws:
      +
      IllegalArgumentException - if collectionName is invalid
      +
      +
      +
    • +
    • +
      +

      getCollection

      +
      public <T> Collection<T> getCollection(String collectionName, + @NonNull + @NonNull Class<T> documentClass)
      +
      Gets a collection, with a specific default document class.
      +
      +
      Type Parameters:
      +
      T - the type of the class to use instead of Document.
      +
      Parameters:
      +
      collectionName - the name of the collection to return
      +
      documentClass - the default class to cast any documents returned from the database into.
      +
      Returns:
      +
      the collection
      +
      +
      +
    • +
    • +
      +

      getCollection

      +
      public <T> Collection<T> getCollection(String collectionName, + CommandOptions<?> commandOptions, + @NonNull + @NonNull Class<T> documentClass)
      +
      Gets a collection, with a specific default document class.
      +
      +
      Type Parameters:
      +
      T - the type of the class to use instead of Document.
      +
      Parameters:
      +
      collectionName - the name of the collection to return
      +
      commandOptions - options to use when using this collection
      +
      documentClass - the default class to cast any documents returned from the database into.
      +
      Returns:
      +
      the collection
      +
      +
      +
    • +
    • +
      +

      drop

      +
      public void drop()
      +
      Drops this namespace
      +
      +
    • +
    • +
      +

      createCollection

      +
      public Collection<Document> createCollection(String collectionName)
      +
      Create a new collection with the given name.
      +
      +
      Parameters:
      +
      collectionName - the name for the new collection to create
      +
      Returns:
      +
      the instance of collection
      +
      +
      +
    • +
    • +
      +

      createCollection

      +
      public Collection<Document> createCollection(String collectionName, + int dimension, + SimilarityMetric metric)
      +
      Create a default new collection for vector.
      +
      +
      Parameters:
      +
      collectionName - collection name
      +
      dimension - vector dimension
      +
      metric - vector metric
      +
      Returns:
      +
      the instance of collection
      +
      +
      +
    • +
    • +
      +

      createCollection

      +
      public <T> Collection<T> createCollection(String collectionName, + int dimension, + SimilarityMetric metric, + Class<T> documentClass)
      +
      Create a default new collection for vector.
      +
      +
      Type Parameters:
      +
      T - working class for the document
      +
      Parameters:
      +
      collectionName - collection name
      +
      dimension - vector dimension
      +
      metric - vector metric
      +
      documentClass - class of document to return
      +
      Returns:
      +
      the instance of collection
      +
      +
      +
    • +
    • +
      +

      createCollection

      +
      public <T> Collection<T> createCollection(String collectionName, + Class<T> documentClass)
      +
      Create a new collection with the given name.
      +
      +
      Type Parameters:
      +
      T - working class for the document
      +
      Parameters:
      +
      collectionName - the name for the new collection to create
      +
      documentClass - class of document to return
      +
      Returns:
      +
      the collection
      +
      +
      +
    • +
    • +
      +

      createCollection

      +
      public Collection<Document> createCollection(String collectionName, + CollectionOptions collectionOptions)
      +
      Create a new collection with the given name.
      +
      +
      Parameters:
      +
      collectionName - the name for the new collection to create
      +
      collectionOptions - various options for creating the collection
      +
      Returns:
      +
      the collection
      +
      +
      +
    • +
    • +
      +

      createCollection

      +
      public <T> Collection<T> createCollection(String collectionName, + CollectionOptions collectionOptions, + Class<T> documentClass)
      +
      Create a new collection with the given name.
      +
      +
      Type Parameters:
      +
      T - working object for the document
      +
      Parameters:
      +
      collectionName - collection name
      +
      collectionOptions - collection options
      +
      documentClass - document class
      +
      Returns:
      +
      the collection created
      +
      +
      +
    • +
    • +
      +

      createCollection

      +
      public Collection<Document> createCollection(String collectionName, + CollectionOptions collectionOptions, + CommandOptions<?> commandOptions)
      +
      Create a new collection with the given name.
      +
      +
      Parameters:
      +
      collectionName - the name for the new collection to create
      +
      collectionOptions - various options for creating the collection
      +
      commandOptions - options to use when using this collection
      +
      Returns:
      +
      the collection
      +
      +
      +
    • +
    • +
      +

      createCollection

      +
      public <T> Collection<T> createCollection(String collectionName, + CollectionOptions collectionOptions, + CommandOptions<?> commandOptions, + Class<T> documentClass)
      +
      Create a new collection with the selected options
      +
      +
      Type Parameters:
      +
      T - working class for the document
      +
      Parameters:
      +
      collectionName - the name for the new collection to create
      +
      collectionOptions - various options for creating the collection
      +
      commandOptions - options to use when using this collection
      +
      documentClass - the default class to cast any documents returned from the database into.
      +
      Returns:
      +
      the collection
      +
      +
      +
    • +
    • +
      +

      dropCollection

      +
      public void dropCollection(String collectionName)
      +
      Delete a collection.
      +
      +
      Parameters:
      +
      collectionName - collection name
      +
      +
      +
    • +
    • +
      +

      getApiEndpoint

      +
      protected String getApiEndpoint()
      +
      The subclass should provide the endpoint, url to post request.
      +
      +
      Specified by:
      +
      getApiEndpoint in class AbstractCommandRunner
      +
      Returns:
      +
      url on which to post the request
      +
      +
      +
    • +
    • +
      +

      registerListener

      +
      @Deprecated +public void registerListener(String logger, + CommandObserver commandObserver)
      +
      Deprecated.
      +
      Register a listener to execute commands on the collection. Please now use CommandOptions.
      +
      +
      Parameters:
      +
      logger - name for the logger
      +
      commandObserver - class for the logger
      +
      +
      +
    • +
    • +
      +

      deleteListener

      +
      @Deprecated +public void deleteListener(String name)
      +
      Deprecated.
      +
      Register a listener to execute commands on the collection. Please now use CommandOptions.
      +
      +
      Parameters:
      +
      name - name for the observer
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/AstraDBAdmin.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/AstraDBAdmin.html new file mode 100644 index 0000000..c0dbfd3 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/AstraDBAdmin.html @@ -0,0 +1,530 @@ + + + + +AstraDBAdmin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AstraDBAdmin

+
+
java.lang.Object +
com.datastax.astra.client.admin.AstraDBAdmin
+
+
+
+
public class AstraDBAdmin +extends Object
+
Main Client for AstraDB, it implements administration and Data Api Operations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      FREE_TIER_CLOUD

      +
      public static final com.dtsx.astra.sdk.db.domain.CloudProviderType FREE_TIER_CLOUD
      +
      Default cloud provider. (free-tier)
      +
      +
    • +
    • +
      +

      FREE_TIER_CLOUD_REGION

      +
      public static final String FREE_TIER_CLOUD_REGION
      +
      Default region. (free-tier)
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TOKEN_HEADER_PARAM

      +
      public static final String TOKEN_HEADER_PARAM
      +
      Header name used to hold the Astra Token.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_NAMESPACE

      +
      public static final String DEFAULT_NAMESPACE
      +
      Default keyspace (same created by the ui).
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AstraDBAdmin

      +
      public AstraDBAdmin(String token, + com.dtsx.astra.sdk.utils.AstraEnvironment env, + DataAPIOptions options)
      +
      Initialization with an authentication token and target environment, Use this constructor for testing purpose.
      +
      +
      Parameters:
      +
      token - authentication token
      +
      env - astra environment
      +
      options - options for client
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      listDatabaseNames

      +
      public List<String> listDatabaseNames()
      +
      List available database names.
      +
      +
      Returns:
      +
      list of database names
      +
      +
      +
    • +
    • +
      +

      listDatabases

      +
      public List<DatabaseInfo> listDatabases()
      +
      List active databases with vector enabled in current organization.
      +
      +
      Returns:
      +
      active databases list
      +
      +
      +
    • +
    • +
      +

      databaseExists

      +
      public boolean databaseExists(String name)
      +
      Return true if the database exists.
      +
      +
      Parameters:
      +
      name - database identifiers
      +
      Returns:
      +
      if the database exits or not
      +
      +
      +
    • +
    • +
      +

      databaseExists

      +
      public boolean databaseExists(UUID id)
      +
      Return true if the database exists.
      +
      +
      Parameters:
      +
      id - database identifiers
      +
      Returns:
      +
      if the database exits or not
      +
      +
      +
    • +
    • +
      +

      createDatabase

      +
      public DatabaseAdmin createDatabase(String name)
      +
      Create new database with a name on free tier. The database name should not exist in the tenant.
      +
      +
      Parameters:
      +
      name - database name
      +
      Returns:
      +
      database admin object
      +
      +
      +
    • +
    • +
      +

      createDatabase

      +
      public DatabaseAdmin createDatabase(String name, + com.dtsx.astra.sdk.db.domain.CloudProviderType cloud, + String cloudRegion, + boolean waitForDb)
      +
      Create new database with a name on the specified cloud provider and region. + If the database with same name already exists it will be resumed if not active. + The method will wait for the database to be active.
      +
      +
      Parameters:
      +
      name - database name
      +
      cloud - cloud provider
      +
      cloudRegion - cloud region
      +
      waitForDb - if set to true, the method is blocking
      +
      Returns:
      +
      database admin object
      +
      +
      +
    • +
    • +
      +

      createDatabase

      +
      public DatabaseAdmin createDatabase(String name, + com.dtsx.astra.sdk.db.domain.CloudProviderType cloud, + String cloudRegion)
      +
      Create new database with a name on the specified cloud provider and region. + If the database with same name already exists it will be resumed if not active. + The method will wait for the database to be active.
      +
      +
      Parameters:
      +
      name - database name
      +
      cloud - cloud provider
      +
      cloudRegion - cloud region
      +
      Returns:
      +
      database admin object
      +
      +
      +
    • +
    • +
      +

      dropDatabase

      +
      public boolean dropDatabase(@NonNull + @NonNull UUID databaseId)
      +
      Delete a Database if exists from its identifier.
      +
      +
      Parameters:
      +
      databaseId - database identifier
      +
      Returns:
      +
      if the db has been deleted
      +
      +
      +
    • +
    • +
      +

      dropDatabase

      +
      public boolean dropDatabase(@NonNull + @NonNull String databaseName)
      +
      Delete a Database if exists from its name.
      +
      +
      Parameters:
      +
      databaseName - database name
      +
      Returns:
      +
      if the database has been deleted
      +
      +
      +
    • +
    • +
      +

      getDatabaseInfo

      +
      public DatabaseInfo getDatabaseInfo(@NonNull + @NonNull UUID id)
      +
      Find database information from its id.
      +
      +
      Parameters:
      +
      id - database identifier
      +
      Returns:
      +
      the bean representing an Astra database
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(UUID databaseId, + String namespace)
      +
      Access the database functions.
      +
      +
      Parameters:
      +
      databaseId - database identifier
      +
      namespace - target namespace name
      +
      Returns:
      +
      database client
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(UUID databaseId)
      +
      Access the database functions.
      +
      +
      Parameters:
      +
      databaseId - database identifier
      +
      Returns:
      +
      database client
      +
      +
      +
    • +
    • +
      +

      getDatabaseAdmin

      +
      public AstraDBDatabaseAdmin getDatabaseAdmin(UUID databaseId)
      +
      Access the database functions.
      +
      +
      Parameters:
      +
      databaseId - database identifier
      +
      Returns:
      +
      database client
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/AstraDBDatabaseAdmin.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/AstraDBDatabaseAdmin.html new file mode 100644 index 0000000..ce017cd --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/AstraDBDatabaseAdmin.html @@ -0,0 +1,374 @@ + + + + +AstraDBDatabaseAdmin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AstraDBDatabaseAdmin

+
+
java.lang.Object +
com.datastax.astra.client.admin.AstraDBDatabaseAdmin
+
+
+
+
All Implemented Interfaces:
+
DatabaseAdmin
+
+
+
public class AstraDBDatabaseAdmin +extends Object +implements DatabaseAdmin
+
Implementation of the DatabaseAdmin interface for Astra. To create the namespace the devops APi is leverage. To use this class a higher token permission is required.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AstraDBDatabaseAdmin

      +
      public AstraDBDatabaseAdmin(String token, + UUID databaseId, + com.dtsx.astra.sdk.utils.AstraEnvironment env, + DataAPIOptions options)
      +
      Initialize a database admin from token and database id.
      +
      +
      Parameters:
      +
      token - token value
      +
      databaseId - database identifier
      +
      env - working environment
      +
      options - options used to initialize the http client
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getDatabaseInformations

      +
      public com.dtsx.astra.sdk.db.domain.Database getDatabaseInformations()
      +
      Find a database from its id.
      +
      +
      Returns:
      +
      list of db matching the criteria
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(String namespaceName)
      +
      Access teh database with the default token.
      +
      +
      Specified by:
      +
      getDatabase in interface DatabaseAdmin
      +
      Parameters:
      +
      namespaceName - The name of the namespace (or keyspace) to retrieve. This parameter should match the + exact name of the namespace as it exists in the database.
      +
      Returns:
      +
      client to interact with database DML.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(String namespaceName, + String tokenUser)
      +
      Access teh database with the specialized token.
      +
      +
      Specified by:
      +
      getDatabase in interface DatabaseAdmin
      +
      Parameters:
      +
      namespaceName - The name of the namespace (or keyspace) to retrieve. This parameter should match the + exact name of the namespace as it exists in the database.
      +
      tokenUser - token with reduce privileges compared to admin token in order to do dml options (CRUD).
      +
      Returns:
      +
      client to interact with database DML.
      +
      +
      +
    • +
    • +
      +

      listNamespaceNames

      +
      public Set<String> listNamespaceNames()
      +
      Retrieves a stream of namespace names available in the current database. This method is essential for + applications that need to enumerate all namespaces to perform operations such as displaying available + namespaces to users, managing namespaces programmatically, or executing specific tasks within each + namespace. The returned Stream facilitates efficient processing of namespace names, enabling + operations like filtering, sorting, and mapping without the need for preloading all names into memory. + +

      Example usage:

      +
      + 
      + // Assuming 'client' is an instance of DataApiClient
      + Stream<String> namespaceNames = client.listNamespaceNames());
      + // Display names in the console
      + namespaceNames.forEach(System.out::println);
      + 
      + 
      +
      +
      Specified by:
      +
      listNamespaceNames in interface DatabaseAdmin
      +
      Returns:
      +
      A Set containing the names of all namespaces within the current database. The stream + provides a flexible and efficient means to process the namespace names according to the application's needs.
      +
      +
      +
    • +
    • +
      +

      listEmbeddingProviders

      +
      public Map<String,EmbeddingProvider> listEmbeddingProviders()
      +
      Retrieve the list of embedding providers available in the current database. Embedding providers are services + that provide embeddings for text, images, or other data types. This method returns a map of provider names to + EmbeddingProvider instances, allowing applications to access and utilize the embedding services. + +

      Example usage:

      +
      + 
      + // Assuming 'client' is an instance of DataApiClient
      + Map<String, EmbeddingProvider> providers = client.listEmbeddingProviders());
      + 
      + 
      +
      +
      Specified by:
      +
      listEmbeddingProviders in interface DatabaseAdmin
      +
      Returns:
      +
      +
      +
    • +
    • +
      +

      createNamespace

      +
      public void createNamespace(String namespace)
      +
      Create a Namespace providing a name.
      +
      +
      Specified by:
      +
      createNamespace in interface DatabaseAdmin
      +
      Parameters:
      +
      namespace - current namespace.
      +
      +
      +
    • +
    • +
      +

      dropNamespace

      +
      public void dropNamespace(String namespace)
      +
      Drops (deletes) the specified namespace from the database. This operation is idempotent; it will not + produce an error if the namespace does not exist. This method is useful for cleaning up data or removing + entire keyspaces as part of database maintenance or restructuring. Caution should be exercised when using + this method, as dropping a namespace will remove all the data, collections, or tables contained within it, + and this action cannot be undone. + +

      Example usage:

      +
      + 
      + // Assume 'client' is an instance of your data API client
      + String namespace = "targetNamespace";
      +
      + // Drop the namespace
      + client.dropNamespace(namespace);
      +
      + // The namespace 'targetNamespace' is now deleted, along with all its contained data
      + 
      + 
      + + This example demonstrates how to safely drop a namespace by name. The operation ensures that even if the + namespace does not exist, the method call will not interrupt the flow of the application, thereby allowing + for flexible and error-tolerant code design.
      +
      +
      Specified by:
      +
      dropNamespace in interface DatabaseAdmin
      +
      Parameters:
      +
      namespace - The name of the namespace to be dropped. This parameter specifies the target namespace + that should be deleted. The operation will proceed silently and without error even if the + namespace does not exist, ensuring consistent behavior.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/DataAPIDatabaseAdmin.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/DataAPIDatabaseAdmin.html new file mode 100644 index 0000000..89c1c88 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/DataAPIDatabaseAdmin.html @@ -0,0 +1,517 @@ + + + + +DataAPIDatabaseAdmin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataAPIDatabaseAdmin

+
+
java.lang.Object +
com.datastax.astra.internal.command.AbstractCommandRunner +
com.datastax.astra.client.admin.DataAPIDatabaseAdmin
+
+
+
+
+
All Implemented Interfaces:
+
DatabaseAdmin, CommandRunner
+
+
+
public class DataAPIDatabaseAdmin +extends AbstractCommandRunner +implements DatabaseAdmin
+
Implementation of Client.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      options

      +
      protected final DataAPIOptions options
      +
      Version of the API.
      +
      +
    • +
    • +
      +

      apiEndPoint

      +
      protected final String apiEndPoint
      +
      Version of the API.
      +
      +
    • +
    • +
      +

      token

      +
      protected final String token
      +
      Version of the API.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DataAPIDatabaseAdmin

      +
      public DataAPIDatabaseAdmin(String apiEndpoint, + String token, + DataAPIOptions options)
      +
      Initialize a database admin from token and database id.
      +
      +
      Parameters:
      +
      apiEndpoint - api endpoint.
      +
      token - token value
      +
      options - list of options for the admin
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      listNamespaceNames

      +
      public Set<String> listNamespaceNames()
      +
      Retrieves a stream of namespace names available in the current database. This method is essential for + applications that need to enumerate all namespaces to perform operations such as displaying available + namespaces to users, managing namespaces programmatically, or executing specific tasks within each + namespace. The returned Stream facilitates efficient processing of namespace names, enabling + operations like filtering, sorting, and mapping without the need for preloading all names into memory. + +

      Example usage:

      +
      + 
      + // Assuming 'client' is an instance of DataApiClient
      + Stream<String> namespaceNames = client.listNamespaceNames());
      + // Display names in the console
      + namespaceNames.forEach(System.out::println);
      + 
      + 
      +
      +
      Specified by:
      +
      listNamespaceNames in interface DatabaseAdmin
      +
      Returns:
      +
      A Set containing the names of all namespaces within the current database. The stream + provides a flexible and efficient means to process the namespace names according to the application's needs.
      +
      +
      +
    • +
    • +
      +

      listEmbeddingProviders

      +
      public Map<String,EmbeddingProvider> listEmbeddingProviders()
      +
      Retrieve the list of embedding providers available in the current database. Embedding providers are services + that provide embeddings for text, images, or other data types. This method returns a map of provider names to + EmbeddingProvider instances, allowing applications to access and utilize the embedding services. + +

      Example usage:

      +
      + 
      + // Assuming 'client' is an instance of DataApiClient
      + Map<String, EmbeddingProvider> providers = client.listEmbeddingProviders());
      + 
      + 
      +
      +
      Specified by:
      +
      listEmbeddingProviders in interface DatabaseAdmin
      +
      Returns:
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(String namespaceName)
      +
      Retrieves a Database instance that represents a specific database (or namespace) based on the + provided namespace name. + +

      Example usage:

      +
      + 
      + // Assume 'client' is an instance of your data API client
      + String namespaceName = "exampleNamespace";
      +
      + // Retrieve the namespace instance
      + DataApiNamespace namespace = client.getNamespace(namespaceName);
      +
      + // Now, 'namespace' can be used to perform operations within 'exampleNamespace'
      + 
      + 
      + + This example illustrates how to obtain a DataApiNamespace instance for a specified namespace name, + which then enables the execution of various database operations within that namespace. It highlights the + method's role in facilitating direct interaction with different parts of the database.
      +
      +
      Specified by:
      +
      getDatabase in interface DatabaseAdmin
      +
      Parameters:
      +
      namespaceName - The name of the namespace (or keyspace) to retrieve. This parameter should match the + exact name of the namespace as it exists in the database.
      +
      Returns:
      +
      A DataApiNamespace instance that encapsulates the operations and information specific to the + given namespace.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      public Database getDatabase(String namespaceName, + String userToken)
      +
      Access the Database associated with this admin class.
      +
      +
      Specified by:
      +
      getDatabase in interface DatabaseAdmin
      +
      Parameters:
      +
      namespaceName - the destination namespace for this database
      +
      userToken - the user token with DML access if different from admin.
      +
      Returns:
      +
      instance of the database
      +
      +
      +
    • +
    • +
      +

      createNamespace

      +
      public void createNamespace(String namespace)
      +
      Create a Namespace providing a name.
      +
      +
      Specified by:
      +
      createNamespace in interface DatabaseAdmin
      +
      Parameters:
      +
      namespace - current namespace.
      +
      +
      +
    • +
    • +
      +

      createNamespace

      +
      public void createNamespace(String namespace, + NamespaceOptions options)
      +
      Allow to create a namespace with full-fledged definition
      +
      +
      Parameters:
      +
      namespace - namespace name
      +
      options - options to create a namespace
      +
      +
      +
    • +
    • +
      +

      dropNamespace

      +
      public void dropNamespace(String namespace)
      +
      Drops (deletes) the specified namespace from the database. This operation is idempotent; it will not + produce an error if the namespace does not exist. This method is useful for cleaning up data or removing + entire keyspaces as part of database maintenance or restructuring. Caution should be exercised when using + this method, as dropping a namespace will remove all the data, collections, or tables contained within it, + and this action cannot be undone. + +

      Example usage:

      +
      + 
      + // Assume 'client' is an instance of your data API client
      + String namespace = "targetNamespace";
      +
      + // Drop the namespace
      + client.dropNamespace(namespace);
      +
      + // The namespace 'targetNamespace' is now deleted, along with all its contained data
      + 
      + 
      + + This example demonstrates how to safely drop a namespace by name. The operation ensures that even if the + namespace does not exist, the method call will not interrupt the flow of the application, thereby allowing + for flexible and error-tolerant code design.
      +
      +
      Specified by:
      +
      dropNamespace in interface DatabaseAdmin
      +
      Parameters:
      +
      namespace - The name of the namespace to be dropped. This parameter specifies the target namespace + that should be deleted. The operation will proceed silently and without error even if the + namespace does not exist, ensuring consistent behavior.
      +
      +
      +
    • +
    • +
      +

      getApiEndpoint

      +
      protected String getApiEndpoint()
      +
      The subclass should provide the endpoint, url to post request.
      +
      +
      Specified by:
      +
      getApiEndpoint in class AbstractCommandRunner
      +
      Returns:
      +
      url on which to post the request
      +
      +
      +
    • +
    • +
      +

      registerListener

      +
      @Deprecated +public void registerListener(String logger, + CommandObserver commandObserver)
      +
      Deprecated.
      +
      Register a listener to execute commands on the collection. Please now use CommandOptions.
      +
      +
      Parameters:
      +
      logger - name for the logger
      +
      commandObserver - class for the logger
      +
      +
      +
    • +
    • +
      +

      deleteListener

      +
      @Deprecated +public void deleteListener(String name)
      +
      Deprecated.
      +
      Register a listener to execute commands on the collection. Please now use CommandOptions.
      +
      +
      Parameters:
      +
      name - name for the observer
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/DatabaseAdmin.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/DatabaseAdmin.html new file mode 100644 index 0000000..fd0704b --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/DatabaseAdmin.html @@ -0,0 +1,464 @@ + + + + +DatabaseAdmin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface DatabaseAdmin

+
+
+
+
All Known Implementing Classes:
+
AstraDBDatabaseAdmin, DataAPIDatabaseAdmin
+
+
+
public interface DatabaseAdmin
+
Defines the core client interface for interacting with the Data API, focusing on CRUD (Create, Read, Update, Delete) + operations for namespaces. This interface extends the CommandRunner, incorporating methods that + allow for the execution of various data manipulation and query commands within the scope of a namespace. +

+ Implementations of this interface should provide concrete methods for namespace management, including the + creation, retrieval, updating, and deletion of namespaces. By leveraging the extended command runner capabilities, + it facilitates a streamlined and efficient approach to data management within the specified context. +

+

 

+

Example usage:

+
+ 
+
+ // Initialization of the client
+ DataApiClient client1 = DataApiClients.create("http://<>endpoint>", "<token>", new HttpClientOptions());
+
+ // Example operation: Create a new namespace
+ DataApiNamespace newNamespace = client.createNamespace("exampleNamespace");
+
+ // Example operation: Fetch a namespace
+ DataApiNamespace fetchedNamespace = client.getNamespace("exampleNamespace");
+
+ // Example operation: Delete a namespace
+ client.deleteNamespace("exampleNamespace");
+ 
+ 
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      listNamespaceNames

      +
      Set<String> listNamespaceNames()
      +
      Retrieves a stream of namespace names available in the current database. This method is essential for + applications that need to enumerate all namespaces to perform operations such as displaying available + namespaces to users, managing namespaces programmatically, or executing specific tasks within each + namespace. The returned Stream facilitates efficient processing of namespace names, enabling + operations like filtering, sorting, and mapping without the need for preloading all names into memory. + +

      Example usage:

      +
      + 
      + // Assuming 'client' is an instance of DataApiClient
      + Stream<String> namespaceNames = client.listNamespaceNames());
      + // Display names in the console
      + namespaceNames.forEach(System.out::println);
      + 
      + 
      +
      +
      Returns:
      +
      A Set containing the names of all namespaces within the current database. The stream + provides a flexible and efficient means to process the namespace names according to the application's needs.
      +
      +
      +
    • +
    • +
      +

      listEmbeddingProviders

      +
      Map<String,EmbeddingProvider> listEmbeddingProviders()
      +
      Retrieve the list of embedding providers available in the current database. Embedding providers are services + that provide embeddings for text, images, or other data types. This method returns a map of provider names to + EmbeddingProvider instances, allowing applications to access and utilize the embedding services. + +

      Example usage:

      +
      + 
      + // Assuming 'client' is an instance of DataApiClient
      + Map<String, EmbeddingProvider> providers = client.listEmbeddingProviders());
      + 
      + 
      +
      +
      Returns:
      +
      +
      +
    • +
    • +
      +

      listNamespaceNamesAsync

      +
      default CompletableFuture<Set<String>> listNamespaceNamesAsync()
      +
      Asynchronously retrieves a stream of namespace names available in the current database. This method facilitates + non-blocking operations by allowing the application to continue executing other tasks while the list of namespace + names is being fetched. The method returns a CompletableFuture that, upon completion, provides a + Stream of namespace names, enabling efficient and flexible processing through stream operations. +

      Example usage:

      +
      + 
      + // Assuming 'client' is an instance of DataApiClient
      + CompletableFuture<Stream<String>> futureNamespaces = client.listNamespaceNamesAsync();
      + // Process the stream of names asynchronously once it's available
      + futureNamespaces.thenAccept(streamOfNames -> {
      +   Stream<String> namespaceNames = streamOfNames);
      +   namespaceNames.forEach(System.out::println);
      + }).exceptionally(ex -> {
      +   System.out.println("An error occurred: " + ex.getMessage());
      +   return null;
      + });
      + 
      + 
      +
      +
      Returns:
      +
      A CompletableFuture that, when completed, provides a stream containing the names + of all namespaces within the current database. This allows for the asynchronous processing of namespace + names with the flexibility and efficiency benefits of using a stream.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      Database getDatabase(String namespaceName)
      +
      Retrieves a Database instance that represents a specific database (or namespace) based on the + provided namespace name. + +

      Example usage:

      +
      + 
      + // Assume 'client' is an instance of your data API client
      + String namespaceName = "exampleNamespace";
      +
      + // Retrieve the namespace instance
      + DataApiNamespace namespace = client.getNamespace(namespaceName);
      +
      + // Now, 'namespace' can be used to perform operations within 'exampleNamespace'
      + 
      + 
      + + This example illustrates how to obtain a DataApiNamespace instance for a specified namespace name, + which then enables the execution of various database operations within that namespace. It highlights the + method's role in facilitating direct interaction with different parts of the database.
      +
      +
      Parameters:
      +
      namespaceName - The name of the namespace (or keyspace) to retrieve. This parameter should match the + exact name of the namespace as it exists in the database.
      +
      Returns:
      +
      A DataApiNamespace instance that encapsulates the operations and information specific to the + given namespace.
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      Database getDatabase(String namespaceName, + String userToken)
      +
      Access the Database associated with this admin class.
      +
      +
      Parameters:
      +
      namespaceName - the destination namespace for this database
      +
      userToken - the user token with DML access if different from admin.
      +
      Returns:
      +
      instance of the database
      +
      +
      +
    • +
    • +
      +

      getDatabase

      +
      default Database getDatabase()
      +
      Access the Database asscociated with this admin class.
      +
      +
      Returns:
      +
      associated database
      +
      +
      +
    • +
    • +
      +

      dropNamespace

      +
      void dropNamespace(String namespace)
      +
      Drops (deletes) the specified namespace from the database. This operation is idempotent; it will not + produce an error if the namespace does not exist. This method is useful for cleaning up data or removing + entire keyspaces as part of database maintenance or restructuring. Caution should be exercised when using + this method, as dropping a namespace will remove all the data, collections, or tables contained within it, + and this action cannot be undone. + +

      Example usage:

      +
      + 
      + // Assume 'client' is an instance of your data API client
      + String namespace = "targetNamespace";
      +
      + // Drop the namespace
      + client.dropNamespace(namespace);
      +
      + // The namespace 'targetNamespace' is now deleted, along with all its contained data
      + 
      + 
      + + This example demonstrates how to safely drop a namespace by name. The operation ensures that even if the + namespace does not exist, the method call will not interrupt the flow of the application, thereby allowing + for flexible and error-tolerant code design.
      +
      +
      Parameters:
      +
      namespace - The name of the namespace to be dropped. This parameter specifies the target namespace + that should be deleted. The operation will proceed silently and without error even if the + namespace does not exist, ensuring consistent behavior.
      +
      +
      +
    • +
    • +
      +

      dropNamespaceAsync

      +
      default void dropNamespaceAsync(String namespace)
      +
      Asynchronously drops (deletes) the specified namespace from the database. This operation is idempotent, meaning + it will not produce an error if the namespace does not exist. Performing this operation asynchronously ensures + that the calling thread remains responsive, and can be particularly useful for applications that require high + availability and cannot afford to block on potentially long-running operations. Just like its synchronous counterpart, + this method should be used with caution as dropping a namespace will remove all associated data, collections, + or tables, and this action is irreversible. + +

      Example usage:

      +
      + 
      + // Assume 'client' is an instance of your data API client
      + String namespace = "asyncTargetNamespace";
      +
      + // Asynchronously drop the namespace
      + client.dropNamespaceAsync(namespace);
      +
      + // The namespace 'asyncTargetNamespace' is now being deleted in the background, along with all its contained data
      + 
      + 
      + + This example illustrates the non-blocking nature of dropping a namespace. It demonstrates the method's utility in + maintaining application responsiveness, even when performing potentially long-running database operations.
      +
      +
      Parameters:
      +
      namespace - The name of the namespace to be dropped. This is the target namespace that will be deleted. + The asynchronous nature of this method means that it will execute without blocking the calling + thread, regardless of whether the namespace exists or not, ensuring a consistent and responsive + application behavior.
      +
      +
      +
    • +
    • +
      +

      createNamespace

      +
      void createNamespace(String namespace)
      +
      Create a Namespace providing a name.
      +
      +
      Parameters:
      +
      namespace - current namespace.
      +
      +
      +
    • +
    • +
      +

      createNamespaceAsync

      +
      default CompletableFuture<Void> createNamespaceAsync(String namespace)
      +
      Create a Namespace providing a name.
      +
      +
      Parameters:
      +
      namespace - current namespace.
      +
      Returns:
      +
      client for namespace
      +
      +
      +
    • +
    • +
      +

      namespaceExists

      +
      default boolean namespaceExists(String namespace)
      +
      Evaluate if a namespace exists.
      +
      +
      Parameters:
      +
      namespace - namespace name.
      +
      Returns:
      +
      if namespace exists
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/AstraDBAdmin.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/AstraDBAdmin.html new file mode 100644 index 0000000..e982a6e --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/AstraDBAdmin.html @@ -0,0 +1,98 @@ + + + + +Uses of Class com.datastax.astra.client.admin.AstraDBAdmin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.admin.AstraDBAdmin

+
+
Packages that use AstraDBAdmin
+
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/AstraDBDatabaseAdmin.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/AstraDBDatabaseAdmin.html new file mode 100644 index 0000000..977a801 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/AstraDBDatabaseAdmin.html @@ -0,0 +1,92 @@ + + + + +Uses of Class com.datastax.astra.client.admin.AstraDBDatabaseAdmin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.admin.AstraDBDatabaseAdmin

+
+
Packages that use AstraDBDatabaseAdmin
+
+
Package
+
Description
+ +
+
Administration classes to manage Databases and Namespaces.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/DataAPIDatabaseAdmin.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/DataAPIDatabaseAdmin.html new file mode 100644 index 0000000..6a1fda4 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/DataAPIDatabaseAdmin.html @@ -0,0 +1,63 @@ + + + + +Uses of Class com.datastax.astra.client.admin.DataAPIDatabaseAdmin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.admin.DataAPIDatabaseAdmin

+
+No usage of com.datastax.astra.client.admin.DataAPIDatabaseAdmin
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/DatabaseAdmin.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/DatabaseAdmin.html new file mode 100644 index 0000000..f0984da --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/class-use/DatabaseAdmin.html @@ -0,0 +1,148 @@ + + + + +Uses of Interface com.datastax.astra.client.admin.DatabaseAdmin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.datastax.astra.client.admin.DatabaseAdmin

+
+
Packages that use DatabaseAdmin
+
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+ +
+
Administration classes to manage Databases and Namespaces.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-summary.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-summary.html new file mode 100644 index 0000000..051e0a1 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-summary.html @@ -0,0 +1,138 @@ + + + + +com.datastax.astra.client.admin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Package com.datastax.astra.client.admin

+
+
+
package com.datastax.astra.client.admin
+
+
Administration classes to manage Databases and Namespaces.
+
+
+
    +
  • + +
  • +
  • +
    +
    +
    +
    +
    Class
    +
    Description
    + +
    +
    Main Client for AstraDB, it implements administration and Data Api Operations.
    +
    + +
    +
    Implementation of the DatabaseAdmin interface for Astra.
    +
    + +
    +
    Implementation of Client.
    +
    + +
    +
    Defines the core client interface for interacting with the Data API, focusing on CRUD (Create, Read, Update, Delete) + operations for namespaces.
    +
    +
    +
    +
    +
  • +
+
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-tree.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-tree.html new file mode 100644 index 0000000..5424914 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-tree.html @@ -0,0 +1,89 @@ + + + + +com.datastax.astra.client.admin Class Hierarchy (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.datastax.astra.client.admin

+
+Package Hierarchies: + +
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-use.html b/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-use.html new file mode 100644 index 0000000..01c4238 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/admin/package-use.html @@ -0,0 +1,116 @@ + + + + +Uses of Package com.datastax.astra.client.admin (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.datastax.astra.client.admin

+
+ +
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+ +
+
Administration classes to manage Databases and Namespaces.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/class-use/Collection.html b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/Collection.html new file mode 100644 index 0000000..da11368 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/Collection.html @@ -0,0 +1,201 @@ + + + + +Uses of Class com.datastax.astra.client.Collection (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.Collection

+
+
Packages that use Collection
+
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+ +
+
Domain model classes with Requests, Results, Options and Iterables.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIClient.html b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIClient.html new file mode 100644 index 0000000..8f25e90 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIClient.html @@ -0,0 +1,109 @@ + + + + +Uses of Class com.datastax.astra.client.DataAPIClient (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.DataAPIClient

+
+
Packages that use DataAPIClient
+
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIClients.html b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIClients.html new file mode 100644 index 0000000..fbfe33c --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIClients.html @@ -0,0 +1,63 @@ + + + + +Uses of Class com.datastax.astra.client.DataAPIClients (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.DataAPIClients

+
+No usage of com.datastax.astra.client.DataAPIClients
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.DataAPIClientOptionsBuilder.html b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.DataAPIClientOptionsBuilder.html new file mode 100644 index 0000000..89b4c83 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.DataAPIClientOptionsBuilder.html @@ -0,0 +1,179 @@ + + + + +Uses of Class com.datastax.astra.client.DataAPIOptions.DataAPIClientOptionsBuilder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.DataAPIOptions.DataAPIClientOptionsBuilder

+
+ +
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.DataAPIDestination.html b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.DataAPIDestination.html new file mode 100644 index 0000000..3542caf --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.DataAPIDestination.html @@ -0,0 +1,109 @@ + + + + +Uses of Enum com.datastax.astra.client.DataAPIOptions.DataAPIDestination (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Enum
com.datastax.astra.client.DataAPIOptions.DataAPIDestination

+
+ +
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.HttpProxy.html b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.HttpProxy.html new file mode 100644 index 0000000..ad62ebf --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.HttpProxy.html @@ -0,0 +1,92 @@ + + + + +Uses of Class com.datastax.astra.client.DataAPIOptions.HttpProxy (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.DataAPIOptions.HttpProxy

+
+
Packages that use DataAPIOptions.HttpProxy
+
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.html new file mode 100644 index 0000000..097e4e2 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/DataAPIOptions.html @@ -0,0 +1,160 @@ + + + + +Uses of Class com.datastax.astra.client.DataAPIOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.DataAPIOptions

+
+
Packages that use DataAPIOptions
+
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+ +
+
Administration classes to manage Databases and Namespaces.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/class-use/Database.html b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/Database.html new file mode 100644 index 0000000..89a1bf6 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/class-use/Database.html @@ -0,0 +1,203 @@ + + + + +Uses of Class com.datastax.astra.client.Database (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.Database

+
+
Packages that use Database
+
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+ +
+
Administration classes to manage Databases and Namespaces.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/AuthenticationException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/AuthenticationException.html new file mode 100644 index 0000000..f889972 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/AuthenticationException.html @@ -0,0 +1,193 @@ + + + + +AuthenticationException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AuthenticationException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class AuthenticationException +extends DataApiException
+
Specialized Error.
+
+
Author:
+
Cedrick LUNVEN (@clunven)
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AuthenticationException

      +
      public AuthenticationException(String msg)
      +
      Constructor with message
      +
      +
      Parameters:
      +
      msg - message
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataAPIFaultyResponseException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataAPIFaultyResponseException.html new file mode 100644 index 0000000..6d2ce0a --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataAPIFaultyResponseException.html @@ -0,0 +1,224 @@ + + + + +DataAPIFaultyResponseException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataAPIFaultyResponseException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class DataAPIFaultyResponseException +extends DataApiException
+
Represents a specific kind of DataApiException that is thrown when the response + received from the Data API does not match the expected format or content. This exception + is typically thrown in situations where the API response is either malformed, incomplete, + or contains an error code indicating a failure that needs to be addressed by the client application. +

+ This exception encapsulates details about the command that triggered the erroneous response + and the actual response received from the Data API, allowing for more informed error handling + and debugging. It is advisable to catch this exception specifically when performing operations + that are critical and have known potential for response inconsistencies. +

+

Example usage:

+
+ 
+ try {
+     ApiResponse response = dataApiClient.executeCommand(someCommand);
+     if (!response.isSuccessful()) {
+         throw new DataApiFaultyResponseException(someCommand, response, "The response indicates a failure.");
+     }
+     // Process the successful response
+ } catch (DataApiFaultyResponseException e) {
+     // Handle scenarios where the API response was not as expected
+     log.error("Faulty response received for command: " + e.getCommand() + " with message: " + e.getMessage(), e);
+ }
+ 
+ 
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DataAPIFaultyResponseException

      +
      public DataAPIFaultyResponseException(Command cmd, + ApiResponse res, + String msg)
      +
      Constructs a new exception with the specified command that triggered the error, + the API response received, and a custom error message.
      +
      +
      Parameters:
      +
      cmd - The command object that was executed and led to the faulty response.
      +
      res - The actual response received from the Data API which was not as expected.
      +
      msg - The detailed error message explaining the nature of the fault.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataApiException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataApiException.html new file mode 100644 index 0000000..0422a2f --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataApiException.html @@ -0,0 +1,389 @@ + + + + +DataApiException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataApiException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.datastax.astra.client.exception.DataApiException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
AuthenticationException, DataAPIFaultyResponseException, DataApiResponseException
+
+
+
public class DataApiException +extends RuntimeException
+
Represents a runtime exception that occurs within the Data API client. This exception + is thrown to indicate a problem encountered while performing operations such as querying, + updating, or deleting data through the Data API. It acts as a wrapper for lower-level exceptions + to provide a more general fault indication to the client code. +

+ This exception should be caught and handled by the client application to gracefully + manage API-related errors, such as connectivity issues, data format mismatches, or unauthorized + access attempts. It is recommended to log the details of this exception and present a user-friendly + message to the end-user, if applicable. +

+

Example usage:

+
+ 
+ try {
+     collection.insertOne(document);
+ } catch (DataApiException e) {
+     // Handle the exception, e.g., log it or display an error message
+     log.error("Error performing Data API operation: " + e.getMessage(), e);
+ }
+ 
+ 
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      DEFAULT_ERROR_MESSAGE

      +
      public static final String DEFAULT_ERROR_MESSAGE
      +
      Default error message.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_ERROR_CODE

      +
      public static final String DEFAULT_ERROR_CODE
      +
      Default error code.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ERROR_CODE_TIMEOUT

      +
      public static final String ERROR_CODE_TIMEOUT
      +
      Default error code.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ERROR_CODE_INTERRUPTED

      +
      public static final String ERROR_CODE_INTERRUPTED
      +
      Default error code.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ERROR_CODE_RANDOM

      +
      public static final String ERROR_CODE_RANDOM
      +
      Default error code.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ERROR_CODE_HTTP

      +
      public static final String ERROR_CODE_HTTP
      +
      Default error code.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ERROR_CODE_SERIALIZATION

      +
      public static final String ERROR_CODE_SERIALIZATION
      +
      Default error code.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DataApiException

      +
      public DataApiException(String errorCode, + String errorMessage)
      +
      Constructors providing all arguments and a parent exception.
      +
      +
      Parameters:
      +
      errorCode - error code
      +
      errorMessage - error message
      +
      +
      +
    • +
    • +
      +

      DataApiException

      +
      public DataApiException(String errorMessage, + String errorCode, + Throwable parent)
      +
      Constructors providing all arguments and a parent exception.
      +
      +
      Parameters:
      +
      errorMessage - error message
      +
      errorCode - error code
      +
      parent - parent exception
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataApiResponseException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataApiResponseException.html new file mode 100644 index 0000000..0ef49db --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/DataApiResponseException.html @@ -0,0 +1,290 @@ + + + + +DataApiResponseException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DataApiResponseException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class DataApiResponseException +extends DataApiException
+
Extends DataApiException to specifically address errors encountered during the + processing of responses from the Data API. This exception is particularly useful when + a command issued to the API is internally divided into multiple sub-operations, each of + which might succeed or fail independently. It aggregates detailed information about each + sub-operation, including execution times and any errors encountered, facilitating comprehensive + error tracking and debugging. +

+ The commandsList attribute of this exception holds a collection of ExecutionInfos + objects, each representing the outcome of a sub-operation. This detailed breakdown helps in + identifying specific points of failure within a complex command execution sequence, making it + easier for developers to diagnose issues and implement more robust error handling and recovery + strategies. +

+

Example usage:

+
+ 
+ try {
+     List<Document> longListOfDocuments;
+     collection.insertMany(longListOfDocuments);
+ } catch (DataApiResponseException e) {
+     e.getCommandsList().forEach(executionInfo -> {
+         if (executionInfo.hasErrors()) {
+             log.error("Error in sub-operation: " + executionInfo.getErrorDetails());
+         }
+     });
+     // Handle the exception or notify the user
+ }
+ 
+ 
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DataApiResponseException

      +
      public DataApiResponseException(List<ExecutionInfos> cmdList)
      +
      Constructor with list of constructors.
      +
      +
      Parameters:
      +
      cmdList - command execution list
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getApiErrors

      +
      public List<ApiError> getApiErrors()
      +
      Flattening errors as a list.
      +
      +
      Returns:
      +
      list of errors
      +
      +
      +
    • +
    • +
      +

      getErrorMessage

      +
      public static String getErrorMessage(List<ExecutionInfos> commands)
      +
      Parse the command list to get first error of first command.
      +
      +
      Parameters:
      +
      commands - input command list
      +
      Returns:
      +
      error message from the API
      +
      +
      +
    • +
    • +
      +

      getErrorCode

      +
      public static String getErrorCode(List<ExecutionInfos> commands)
      +
      Parse the command list to get first error of first command.
      +
      +
      Parameters:
      +
      commands - input command list
      +
      Returns:
      +
      error code from the API
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/TooManyDocumentsToCountException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/TooManyDocumentsToCountException.html new file mode 100644 index 0000000..dd068d4 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/TooManyDocumentsToCountException.html @@ -0,0 +1,189 @@ + + + + +TooManyDocumentsToCountException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TooManyDocumentsToCountException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
com.datastax.astra.client.exception.TooManyDocumentsToCountException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class TooManyDocumentsToCountException +extends Exception
+
Error when too many documents in the collection
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TooManyDocumentsToCountException

      +
      public TooManyDocumentsToCountException()
      +
      Default constructor.
      +
      +
    • +
    • +
      +

      TooManyDocumentsToCountException

      +
      public TooManyDocumentsToCountException(int upperLimit)
      +
      Default constructor.
      +
      +
      Parameters:
      +
      upperLimit - what it the most the count can return
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/AuthenticationException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/AuthenticationException.html new file mode 100644 index 0000000..bd169c7 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/AuthenticationException.html @@ -0,0 +1,63 @@ + + + + +Uses of Class com.datastax.astra.client.exception.AuthenticationException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.exception.AuthenticationException

+
+No usage of com.datastax.astra.client.exception.AuthenticationException
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataAPIFaultyResponseException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataAPIFaultyResponseException.html new file mode 100644 index 0000000..d829b9c --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataAPIFaultyResponseException.html @@ -0,0 +1,63 @@ + + + + +Uses of Class com.datastax.astra.client.exception.DataAPIFaultyResponseException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.exception.DataAPIFaultyResponseException

+
+No usage of com.datastax.astra.client.exception.DataAPIFaultyResponseException
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataApiException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataApiException.html new file mode 100644 index 0000000..0c695b2 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataApiException.html @@ -0,0 +1,104 @@ + + + + +Uses of Class com.datastax.astra.client.exception.DataApiException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.exception.DataApiException

+
+
Packages that use DataApiException
+
+
Package
+
Description
+ +
+
Exceptions specialized checked and unchecked thrown by the client.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataApiResponseException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataApiResponseException.html new file mode 100644 index 0000000..a7c8415 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/DataApiResponseException.html @@ -0,0 +1,100 @@ + + + + +Uses of Class com.datastax.astra.client.exception.DataApiResponseException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.exception.DataApiResponseException

+
+
Packages that use DataApiResponseException
+
+
Package
+
Description
+ +
+
Domain model classes with Requests, Results, Options and Iterables.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/TooManyDocumentsToCountException.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/TooManyDocumentsToCountException.html new file mode 100644 index 0000000..7251336 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/class-use/TooManyDocumentsToCountException.html @@ -0,0 +1,105 @@ + + + + +Uses of Class com.datastax.astra.client.exception.TooManyDocumentsToCountException (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.datastax.astra.client.exception.TooManyDocumentsToCountException

+
+ +
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-summary.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-summary.html new file mode 100644 index 0000000..016c27e --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-summary.html @@ -0,0 +1,141 @@ + + + + +com.datastax.astra.client.exception (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Package com.datastax.astra.client.exception

+
+
+
package com.datastax.astra.client.exception
+
+
Exceptions specialized checked and unchecked thrown by the client.
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-tree.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-tree.html new file mode 100644 index 0000000..23c7a1f --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-tree.html @@ -0,0 +1,96 @@ + + + + +com.datastax.astra.client.exception Class Hierarchy (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.datastax.astra.client.exception

+
+Package Hierarchies: + +
+

Class Hierarchy

+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-use.html b/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-use.html new file mode 100644 index 0000000..db07ea2 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/exception/package-use.html @@ -0,0 +1,124 @@ + + + + +Uses of Package com.datastax.astra.client.exception (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.datastax.astra.client.exception

+
+ +
+
Package
+
Description
+ +
+
Entrypoint and core classes for the client.
+
+ +
+
Exceptions specialized checked and unchecked thrown by the client.
+
+ +
+
Domain model classes with Requests, Results, Options and Iterables.
+
+
+
+ +
+
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteOptions.Builder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteOptions.Builder.html new file mode 100644 index 0000000..e1fe862 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteOptions.Builder.html @@ -0,0 +1,183 @@ + + + + +BulkWriteOptions.Builder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BulkWriteOptions.Builder

+
+
java.lang.Object +
com.datastax.astra.client.model.BulkWriteOptions.Builder
+
+
+
+
Enclosing class:
+
BulkWriteOptions
+
+
+
public static class BulkWriteOptions.Builder +extends Object
+
Builder for creating FindOneAndUpdateOptions instances with a fluent API.
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ordered

      +
      public static BulkWriteOptions ordered(boolean ordered)
      +
      Initializes the building process with ordered options.
      +
      +
      Parameters:
      +
      ordered - The ordered criteria to be applied to the insertMany operation.
      +
      Returns:
      +
      A new BulkWriteOptions instance configured with the provided ordered criteria.
      +
      +
      +
    • +
    • +
      +

      concurrency

      +
      public static BulkWriteOptions concurrency(int concurrency)
      +
      Initializes the building process with concurrency options.
      +
      +
      Parameters:
      +
      concurrency - The concurrency criteria to be applied to the insertMany operation.
      +
      Returns:
      +
      A new BulkWriteOptions instance configured with the provided concurrency criteria.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteOptions.html new file mode 100644 index 0000000..609cf1d --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteOptions.html @@ -0,0 +1,240 @@ + + + + +BulkWriteOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BulkWriteOptions

+
+
java.lang.Object +
com.datastax.astra.client.model.CommandOptions<BulkWriteOptions> +
com.datastax.astra.client.model.BulkWriteOptions
+
+
+
+
+
public final class BulkWriteOptions +extends CommandOptions<BulkWriteOptions>
+
Options used in the `bulkWrite` command.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BulkWriteOptions

      +
      public BulkWriteOptions()
      +
      Default constructor.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      ordered

      +
      public BulkWriteOptions ordered(boolean ordered)
      +
      Setter for ordered.
      +
      +
      Parameters:
      +
      ordered - ordered value
      +
      Returns:
      +
      insert many options
      +
      +
      +
    • +
    • +
      +

      concurrency

      +
      public BulkWriteOptions concurrency(int concurrency)
      +
      Setter for concurrency.
      +
      +
      Parameters:
      +
      concurrency - concurrency value
      +
      Returns:
      +
      insert many options
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteResult.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteResult.html new file mode 100644 index 0000000..d7cd3c4 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/BulkWriteResult.html @@ -0,0 +1,159 @@ + + + + +BulkWriteResult (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BulkWriteResult

+
+
java.lang.Object +
com.datastax.astra.client.model.BulkWriteResult
+
+
+
+
public class BulkWriteResult +extends Object
+
Store the list of responses returned by the bulk write.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BulkWriteResult

      +
      public BulkWriteResult(int size)
      +
      Constructor with the number of operations.
      +
      +
      Parameters:
      +
      size - number of operations to process.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionIdTypes.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionIdTypes.html new file mode 100644 index 0000000..dee49c9 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionIdTypes.html @@ -0,0 +1,286 @@ + + + + +CollectionIdTypes (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum CollectionIdTypes

+
+
java.lang.Object +
java.lang.Enum<CollectionIdTypes> +
com.datastax.astra.client.model.CollectionIdTypes
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<CollectionIdTypes>, java.lang.constant.Constable
+
+
+
public enum CollectionIdTypes +extends Enum<CollectionIdTypes>
+
List of possible types for the collection 'defaultId'.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      OBJECT_ID

      +
      public static final CollectionIdTypes OBJECT_ID
      +
      Represent a BSON ObjectId.
      +
      +
    • +
    • +
      +

      UUIDV6

      +
      public static final CollectionIdTypes UUIDV6
      +
      UUID in version v6 allowing natural ordering.
      +
      +
    • +
    • +
      +

      UUIDV7

      +
      public static final CollectionIdTypes UUIDV7
      +
      UUID in version v7, random and time-based.
      +
      +
    • +
    • +
      +

      UUID

      +
      public static final CollectionIdTypes UUID
      +
      UUID v4, the default random UUID.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static CollectionIdTypes[] values()
      +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum type, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static CollectionIdTypes valueOf(String name)
      +
      Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum type has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      fromValue

      +
      public static CollectionIdTypes fromValue(String value)
      +
      Creates a CollectionIdTypes from its string value.
      +
      +
      Parameters:
      +
      value - The string value to look for.
      +
      Returns:
      +
      The corresponding CollectionIdTypes enum constant.
      +
      Throws:
      +
      IllegalArgumentException - if the value does not correspond to any CollectionIdTypes.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionInfo.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionInfo.html new file mode 100644 index 0000000..7d91680 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionInfo.html @@ -0,0 +1,186 @@ + + + + +CollectionInfo (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CollectionInfo

+
+
java.lang.Object +
com.datastax.astra.client.model.CollectionInfo
+
+
+
+
public class CollectionInfo +extends Object
+
Represents the Collection definition with its name and metadata.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      CollectionInfo

      +
      public CollectionInfo()
      +
      Default constructor.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.CollectionOptionsBuilder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.CollectionOptionsBuilder.html new file mode 100644 index 0000000..989aee8 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.CollectionOptionsBuilder.html @@ -0,0 +1,379 @@ + + + + +CollectionOptions.CollectionOptionsBuilder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CollectionOptions.CollectionOptionsBuilder

+
+
java.lang.Object +
com.datastax.astra.client.model.CollectionOptions.CollectionOptionsBuilder
+
+
+
+
Enclosing class:
+
CollectionOptions
+
+
+
public static class CollectionOptions.CollectionOptionsBuilder +extends Object
+
Builder for CollectionInfo.
+
+
+ +
+
+ +
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.DefaultIdOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.DefaultIdOptions.html new file mode 100644 index 0000000..1454a72 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.DefaultIdOptions.html @@ -0,0 +1,174 @@ + + + + +CollectionOptions.DefaultIdOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CollectionOptions.DefaultIdOptions

+
+
java.lang.Object +
com.datastax.astra.client.model.CollectionOptions.DefaultIdOptions
+
+
+
+
Enclosing class:
+
CollectionOptions
+
+
+
public static class CollectionOptions.DefaultIdOptions +extends Object
+
Subclass representing the indexing options.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DefaultIdOptions

      +
      public DefaultIdOptions()
      +
      Default constructor.
      +
      +
    • +
    • +
      +

      DefaultIdOptions

      +
      public DefaultIdOptions(String type)
      +
      Default constructor.
      +
      +
      Parameters:
      +
      type - type for the default id
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.IndexingOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.IndexingOptions.html new file mode 100644 index 0000000..2d24040 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.IndexingOptions.html @@ -0,0 +1,159 @@ + + + + +CollectionOptions.IndexingOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CollectionOptions.IndexingOptions

+
+
java.lang.Object +
com.datastax.astra.client.model.CollectionOptions.IndexingOptions
+
+
+
+
Enclosing class:
+
CollectionOptions
+
+
+
public static class CollectionOptions.IndexingOptions +extends Object
+
Subclass representing the indexing options.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      IndexingOptions

      +
      public IndexingOptions()
      +
      Default constructor.
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.Parameters.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.Parameters.html new file mode 100644 index 0000000..a12aafe --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.Parameters.html @@ -0,0 +1,159 @@ + + + + +CollectionOptions.Parameters (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CollectionOptions.Parameters

+
+
java.lang.Object +
com.datastax.astra.client.model.CollectionOptions.Parameters
+
+
+
+
Enclosing class:
+
CollectionOptions
+
+
+
public static class CollectionOptions.Parameters +extends Object
+
Subclass representing a parameters for LLM Services
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Parameters

      +
      public Parameters()
      +
      Default constructor.
      +
      +
    • +
    +
    +
  • +
+
+ +
+ +
+
+ + diff --git a/astra-db-java/latest/com/datastax/astra/client/model/CollectionOptions.Authentication.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.Service.html similarity index 91% rename from astra-db-java/latest/com/datastax/astra/client/model/CollectionOptions.Authentication.html rename to astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.Service.html index 13a0153..90848c5 100644 --- a/astra-db-java/latest/com/datastax/astra/client/model/CollectionOptions.Authentication.html +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/CollectionOptions.Service.html @@ -1,12 +1,12 @@ - -CollectionOptions.Authentication (Java Client Library for Data API 1.1 API) + +CollectionOptions.Service (Java Client Library for Data API 1.2.0 API) - - + + @@ -30,8 +30,9 @@
  • Overview
  • Package
  • -
  • Use
  • +
  • Use
  • Tree
  • +
  • Deprecated
  • Index
  • Help
  • @@ -84,10 +85,10 @@
    Package com.datastax.astra.client.model
    -

    Class CollectionOptions.Authentication

    +

    Class CollectionOptions.Service

    java.lang.Object -
    com.datastax.astra.client.model.CollectionOptions.Authentication
    +
    com.datastax.astra.client.model.CollectionOptions.Service
    @@ -95,9 +96,9 @@

    Class Collectio
    CollectionOptions


    -
    public static class CollectionOptions.Authentication +
    public static class CollectionOptions.Service extends Object
    -
    Subclass representing the Authentication options.
    +
    Subclass representing the services options.
  • -
    -

    DEFAULT_REQUEST_TIMEOUT_SECONDS

    -
    public static final int DEFAULT_REQUEST_TIMEOUT_SECONDS
    +
    +

    DEFAULT_REQUEST_TIMEOUT_MILLISECONDS

    +
    public static final int DEFAULT_REQUEST_TIMEOUT_MILLISECONDS
    Default timeout for initiating connection.
    See Also:
    @@ -225,7 +222,7 @@

    DEFAULT_RETRY_COUNT

    See Also:
    @@ -240,7 +237,7 @@

    DEFAULT_RETRY_DELAY_MILLIS

    See Also:
    diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyOptions.Builder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyOptions.Builder.html new file mode 100644 index 0000000..15ac60c --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyOptions.Builder.html @@ -0,0 +1,229 @@ + + + + +InsertManyOptions.Builder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class InsertManyOptions.Builder

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.InsertManyOptions.Builder
    +
    +
    +
    +
    Enclosing class:
    +
    InsertManyOptions
    +
    +
    +
    @Deprecated +public static class InsertManyOptions.Builder +extends Object
    +
    Deprecated.
    +
    Builder for creating FindOneAndUpdateOptions instances with a fluent API.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        ordered

        +
        public static InsertManyOptions ordered(boolean ordered)
        +
        Deprecated.
        +
        Initializes the building process with ordered options.
        +
        +
        Parameters:
        +
        ordered - The ordered criteria to be applied to the insertMany operation.
        +
        Returns:
        +
        A new InsertManyOptions instance configured with the provided ordered criteria.
        +
        +
        +
      • +
      • +
        +

        concurrency

        +
        public static InsertManyOptions concurrency(int concurrency)
        +
        Deprecated.
        +
        Initializes the building process with concurrency options.
        +
        +
        Parameters:
        +
        concurrency - The concurrency criteria to be applied to the insertMany operation.
        +
        Returns:
        +
        A new InsertManyOptions instance configured with the provided concurrency criteria.
        +
        +
        +
      • +
      • +
        +

        chunkSize

        +
        public static InsertManyOptions chunkSize(int chunkSize)
        +
        Deprecated.
        +
        Initializes the building process with chunkSize options.
        +
        +
        Parameters:
        +
        chunkSize - The chunkSize criteria to be applied to the insertMany operation.
        +
        Returns:
        +
        A new InsertManyOptions instance configured with the provided chunkSize criteria.
        +
        +
        +
      • +
      • +
        +

        timeout

        +
        public static InsertManyOptions timeout(int timeout)
        +
        Deprecated.
        +
        Initializes the building process with timeout options.
        +
        +
        Parameters:
        +
        timeout - The timeout criteria to be applied to the insertMany operation.
        +
        Returns:
        +
        A new InsertManyOptions instance configured with the provided timeout criteria.
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyOptions.html new file mode 100644 index 0000000..07dc760 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyOptions.html @@ -0,0 +1,276 @@ + + + + +InsertManyOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class InsertManyOptions

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.CommandOptions<InsertManyOptions> +
    com.datastax.astra.client.model.InsertManyOptions
    +
    +
    +
    +
    +
    public class InsertManyOptions +extends CommandOptions<InsertManyOptions>
    +
    Options for InsertMany
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        InsertManyOptions

        +
        public InsertManyOptions()
        +
        Populate insertMany options
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        ordered

        +
        public InsertManyOptions ordered(boolean ordered)
        +
        Setter for ordered.
        +
        +
        Parameters:
        +
        ordered - ordered value
        +
        Returns:
        +
        insert many options
        +
        +
        +
      • +
      • +
        +

        concurrency

        +
        public InsertManyOptions concurrency(int concurrency)
        +
        Setter for concurrency.
        +
        +
        Parameters:
        +
        concurrency - concurrency value
        +
        Returns:
        +
        insert many options
        +
        +
        +
      • +
      • +
        +

        chunkSize

        +
        public InsertManyOptions chunkSize(int chunkSize)
        +
        Setter for chunkSize.
        +
        +
        Parameters:
        +
        chunkSize - chunkSize value
        +
        Returns:
        +
        insert many options
        +
        +
        +
      • +
      • +
        +

        timeout

        +
        public InsertManyOptions timeout(int timeout)
        +
        Setter for timeout.
        +
        +
        Parameters:
        +
        timeout - timeout value
        +
        Returns:
        +
        insert many options
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyResult.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyResult.html new file mode 100644 index 0000000..54cb5d0 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertManyResult.html @@ -0,0 +1,155 @@ + + + + +InsertManyResult (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class InsertManyResult

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.InsertManyResult
    +
    +
    +
    +
    public class InsertManyResult +extends Object
    +
    Represents the result returned by command 'insertMany()', mainly the insertedIds.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        InsertManyResult

        +
        public InsertManyResult()
        +
        Default constructor.
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertOneOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertOneOptions.html new file mode 100644 index 0000000..37743eb --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertOneOptions.html @@ -0,0 +1,169 @@ + + + + +InsertOneOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class InsertOneOptions

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.CommandOptions<InsertOneOptions> +
    com.datastax.astra.client.model.InsertOneOptions
    +
    +
    +
    +
    +
    public class InsertOneOptions +extends CommandOptions<InsertOneOptions>
    +
    Options for InsertOne
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        InsertOneOptions

        +
        public InsertOneOptions()
        +
        Default constructor.
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertOneResult.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertOneResult.html new file mode 100644 index 0000000..10505a8 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/InsertOneResult.html @@ -0,0 +1,155 @@ + + + + +InsertOneResult (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class InsertOneResult

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.InsertOneResult
    +
    +
    +
    +
    public class InsertOneResult +extends Object
    +
    Represents the result returned by command 'insertOne()', mainly the insertedI
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        InsertOneResult

        +
        public InsertOneResult()
        +
        Default constructor.
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceInformation.ReplicationStrategy.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceInformation.ReplicationStrategy.html new file mode 100644 index 0000000..491a6ef --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceInformation.ReplicationStrategy.html @@ -0,0 +1,248 @@ + + + + +NamespaceInformation.ReplicationStrategy (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Enum NamespaceInformation.ReplicationStrategy

    +
    +
    java.lang.Object +
    java.lang.Enum<NamespaceInformation.ReplicationStrategy> +
    com.datastax.astra.client.model.NamespaceInformation.ReplicationStrategy
    +
    +
    +
    +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<NamespaceInformation.ReplicationStrategy>, java.lang.constant.Constable
    +
    +
    +
    Enclosing class:
    +
    NamespaceInformation
    +
    +
    +
    public static enum NamespaceInformation.ReplicationStrategy +extends Enum<NamespaceInformation.ReplicationStrategy>
    +
    Replication strategies
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Enum Constant Details

      + +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        values

        +
        public static NamespaceInformation.ReplicationStrategy[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared.
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
        +
      • +
      • +
        +

        valueOf

        +
        public static NamespaceInformation.ReplicationStrategy valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceInformation.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceInformation.html new file mode 100644 index 0000000..9674913 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceInformation.html @@ -0,0 +1,218 @@ + + + + +NamespaceInformation (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class NamespaceInformation

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.NamespaceInformation
    +
    +
    +
    +
    public class NamespaceInformation +extends Object
    +
    Represents the Namespace (keyspac) definition with its name and metadata.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        NamespaceInformation

        +
        public NamespaceInformation()
        +
        Default Constructor.
        +
        +
      • +
      • +
        +

        NamespaceInformation

        +
        public NamespaceInformation(String name)
        +
        Default Constructor.
        +
        +
        Parameters:
        +
        name - create namespace information with name
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      + +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceOptions.html new file mode 100644 index 0000000..1d86ee4 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/NamespaceOptions.html @@ -0,0 +1,179 @@ + + + + +NamespaceOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class NamespaceOptions

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.NamespaceOptions
    +
    +
    +
    +
    public class NamespaceOptions +extends Object
    +
    Options to create a Namespace.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        simpleStrategy

        +
        public static NamespaceOptions simpleStrategy(int replicationFactor)
        +
        Enforce the creation of a namespace with SimpleStrategy.
        +
        +
        Parameters:
        +
        replicationFactor - replication factor
        +
        Returns:
        +
        instance of the options populated
        +
        +
        +
      • +
      • +
        +

        networkTopologyStrategy

        +
        public static NamespaceOptions networkTopologyStrategy(Map<String,Integer> datacenters)
        +
        Enforce the creation of a namespace with NetworkTopology strategy.
        +
        +
        Parameters:
        +
        datacenters - list of datacenters with replication factors
        +
        Returns:
        +
        instance of the options populated
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/ObjectId.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/ObjectId.html new file mode 100644 index 0000000..1e8c538 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/ObjectId.html @@ -0,0 +1,386 @@ + + + + +ObjectId (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class ObjectId

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.ObjectId
    +
    +
    +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<ObjectId>
    +
    +
    +
    public final class ObjectId +extends Object +implements Comparable<ObjectId>, Serializable
    +

    A globally unique identifier for objects.

    + +

    Consists of 12 bytes, divided as follows:

    + + + + + + + + +
    ObjectID layout
    01234567891011
    timerandom valueinc
    +
    +
    See Also:
    +
    + +
    +
    +
    +
    +
      + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      + +
      +
      Create a new object id.
      +
      +
      ObjectId(byte[] bytes)
      +
      +
      Constructs a new instance from the given byte array
      +
      +
      ObjectId(String hexString)
      +
      +
      Constructs a new instance from a 24-byte hexadecimal string representation.
      +
      + +
      +
      Constructs a new instance from the given ByteBuffer
      +
      +
      ObjectId(Date date)
      +
      +
      Constructs a new instance using the given date.
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      +
      int
      + +
       
      +
      boolean
      + +
       
      + + +
      +
      Gets the timestamp as a Date instance.
      +
      +
      int
      + +
       
      +
      void
      + +
      +
      Convert to bytes and put those bytes to the provided ByteBuffer.
      +
      +
      byte[]
      + +
      +
      Convert to a byte array.
      +
      + + +
      +
      Converts this instance into a 24-byte hexadecimal string representation.
      +
      + + +
       
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        ObjectId

        +
        public ObjectId()
        +
        Create a new object id.
        +
        +
      • +
      • +
        +

        ObjectId

        +
        public ObjectId(Date date)
        +
        Constructs a new instance using the given date.
        +
        +
        Parameters:
        +
        date - the date
        +
        +
        +
      • +
      • +
        +

        ObjectId

        +
        public ObjectId(String hexString)
        +
        Constructs a new instance from a 24-byte hexadecimal string representation.
        +
        +
        Parameters:
        +
        hexString - the string to convert
        +
        Throws:
        +
        IllegalArgumentException - if the string is not a valid hex string representation of an ObjectId
        +
        +
        +
      • +
      • +
        +

        ObjectId

        +
        public ObjectId(byte[] bytes)
        +
        Constructs a new instance from the given byte array
        +
        +
        Parameters:
        +
        bytes - the byte array
        +
        Throws:
        +
        IllegalArgumentException - if array is null or not of length 12
        +
        +
        +
      • +
      • +
        +

        ObjectId

        +
        public ObjectId(ByteBuffer buffer)
        +
        Constructs a new instance from the given ByteBuffer
        +
        +
        Parameters:
        +
        buffer - the ByteBuffer
        +
        Throws:
        +
        IllegalArgumentException - if the buffer is null or does not have at least 12 bytes remaining
        +
        Since:
        +
        3.4
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        toByteArray

        +
        public byte[] toByteArray()
        +
        Convert to a byte array. Note that the numbers are stored in big-endian order.
        +
        +
        Returns:
        +
        the byte array
        +
        +
        +
      • +
      • +
        +

        putToByteBuffer

        +
        public void putToByteBuffer(ByteBuffer buffer)
        +
        Convert to bytes and put those bytes to the provided ByteBuffer. + Note that the numbers are stored in big-endian order.
        +
        +
        Parameters:
        +
        buffer - the ByteBuffer
        +
        Throws:
        +
        IllegalArgumentException - if the buffer is null or does not have at least 12 bytes remaining
        +
        Since:
        +
        3.4
        +
        +
        +
      • +
      • +
        +

        getDate

        +
        public Date getDate()
        +
        Gets the timestamp as a Date instance.
        +
        +
        Returns:
        +
        the Date
        +
        +
        +
      • +
      • +
        +

        toHexString

        +
        public String toHexString()
        +
        Converts this instance into a 24-byte hexadecimal string representation.
        +
        +
        Returns:
        +
        a string representation of the ObjectId in hexadecimal format
        +
        +
        +
      • +
      • +
        +

        equals

        +
        public boolean equals(Object o)
        +
        +
        Overrides:
        +
        equals in class Object
        +
        +
        +
      • +
      • +
        +

        hashCode

        +
        public int hashCode()
        +
        +
        Overrides:
        +
        hashCode in class Object
        +
        +
        +
      • +
      • +
        +

        compareTo

        +
        public int compareTo(ObjectId other)
        +
        +
        Specified by:
        +
        compareTo in interface Comparable<ObjectId>
        +
        +
        +
      • +
      • +
        +

        toString

        +
        public String toString()
        +
        +
        Overrides:
        +
        toString in class Object
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/Page.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/Page.html new file mode 100644 index 0000000..acdc39c --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/Page.html @@ -0,0 +1,252 @@ + + + + +Page (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Page<R>

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.Page<R>
    +
    +
    +
    +
    Type Parameters:
    +
    R - document type
    +
    +
    +
    public class Page<R> +extends Object
    +
    Hold results for paging
    +
    +
    Author:
    +
    Cedrick LUNVEN (@clunven)
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Page

        +
        public Page(String pageState, + List<R> results)
        +
        Default constructor.
        +
        +
        Parameters:
        +
        pageState - String
        +
        results - List
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        isEmpty

        +
        public boolean isEmpty()
        +
        Express if results is empty.
        +
        +
        Returns:
        +
        return value
        +
        +
        +
      • +
      • +
        +

        findFirst

        +
        public Optional<R> findFirst()
        +
        Expected from a stream of result.
        +
        +
        Returns:
        +
        first result if exist
        +
        +
        +
      • +
      • +
        +

        one

        +
        public R one()
        +
        When the result is a singleton.
        +
        +
        Returns:
        +
        result as a singleton
        +
        +
        +
      • +
      • +
        +

        getPageState

        +
        public Optional<String> getPageState()
        +
        Getter accessor for attribute 'pageState'.
        +
        +
        Returns:
        +
        current value of 'pageState'
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/PageableIterable.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/PageableIterable.html new file mode 100644 index 0000000..25f26a2 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/PageableIterable.html @@ -0,0 +1,338 @@ + + + + +PageableIterable (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class PageableIterable<T>

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.PageableIterable<T>
    +
    +
    +
    +
    Type Parameters:
    +
    T - type of the document used in the associated collection.
    +
    +
    +
    All Implemented Interfaces:
    +
    Closeable, AutoCloseable
    +
    +
    +
    Direct Known Subclasses:
    +
    DistinctIterable, FindIterable
    +
    +
    +
    public abstract class PageableIterable<T> +extends Object +implements Closeable
    +
    Helping Iteration on Pages and Documents for DataApi.
    +
    +
    +
      + +
    • +
      +

      Field Summary

      +
      Fields
      +
      +
      Modifier and Type
      +
      Field
      +
      Description
      +
      protected boolean
      + +
      +
      The iterable is active and progressing on the results.
      +
      +
      protected Collection<T>
      + +
      +
      Reference to the collection in use.
      +
      +
      protected Page<T>
      + +
      +
      The current page in use.
      +
      +
      protected int
      + +
      +
      Number of items still available to retrieve in this page.
      +
      +
      protected boolean
      + +
      +
      the Iterator is exhausted
      +
      +
      protected Filter
      + +
      +
      Original command, we will edit it to iterate on pages.
      +
      +
      protected FindOptions
      + +
      +
      Original command, we will edit it to iterate on pages.
      +
      +
      protected final AtomicInteger
      + +
      +
      Check host many has been processed (skip and limit support)
      +
      +
      +
      +
    • + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Modifier
      +
      Constructor
      +
      Description
      +
      protected
      + +
      +
      Default constructor.
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      +
      void
      + +
      +
      When no more items available.
      +
      +
      boolean
      + +
      +
      Fetch the next page if the result.
      +
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Field Details

      +
        +
      • +
        +

        collection

        +
        protected Collection<T> collection
        +
        Reference to the collection in use.
        +
        +
      • +
      • +
        +

        totalItemProcessed

        +
        protected final AtomicInteger totalItemProcessed
        +
        Check host many has been processed (skip and limit support)
        +
        +
      • +
      • +
        +

        active

        +
        protected boolean active
        +
        The iterable is active and progressing on the results.
        +
        +
      • +
      • +
        +

        exhausted

        +
        protected boolean exhausted
        +
        the Iterator is exhausted
        +
        +
      • +
      • +
        +

        currentPage

        +
        protected Page<T> currentPage
        +
        The current page in use.
        +
        +
      • +
      • +
        +

        currentPageAvailable

        +
        protected int currentPageAvailable
        +
        Number of items still available to retrieve in this page.
        +
        +
      • +
      • +
        +

        filter

        +
        protected Filter filter
        +
        Original command, we will edit it to iterate on pages.
        +
        +
      • +
      • +
        +

        options

        +
        protected FindOptions options
        +
        Original command, we will edit it to iterate on pages.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        PageableIterable

        +
        protected PageableIterable()
        +
        Default constructor.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        fetchNextPage

        +
        public boolean fetchNextPage()
        +
        Fetch the next page if the result.
        +
        +
        Returns:
        +
        if a new page has been found.
        +
        +
        +
      • +
      • +
        +

        close

        +
        public void close()
        +
        When no more items available.
        +
        +
        Specified by:
        +
        close in interface AutoCloseable
        +
        Specified by:
        +
        close in interface Closeable
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/Projection.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/Projection.html new file mode 100644 index 0000000..b48b147 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/Projection.html @@ -0,0 +1,186 @@ + + + + +Projection (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Projection

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.Projection
    +
    +
    +
    +
    public class Projection +extends Object
    +
    Encode the presence of a field in the result.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Projection

        +
        public Projection(String field, + boolean present)
        +
        Default constructor.
        +
        +
        Parameters:
        +
        field - field value
        +
        present - tell if field is present
        +
        +
        +
      • +
      • +
        +

        Projection

        +
        public Projection(String field, + Boolean present, + Integer sliceStart, + Integer sliceEnd)
        +
        Default constructor.
        +
        +
        Parameters:
        +
        field - field value
        +
        present - tell if field is present
        +
        sliceStart - start of slice (mutually exclusive with 'present')
        +
        sliceEnd - end of slice (mutually exclusive with 'present'), optional
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/Projections.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/Projections.html new file mode 100644 index 0000000..1edeb47 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/Projections.html @@ -0,0 +1,218 @@ + + + + +Projections (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Projections

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.Projections
    +
    +
    +
    +
    public class Projections +extends Object
    +
    Encode the presence of a field in the result.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        include

        +
        public static Projection[] include(String... field)
        +
        Include a field in the result.
        +
        +
        Parameters:
        +
        field - include field
        +
        Returns:
        +
        name to include
        +
        +
        +
      • +
      • +
        +

        slice

        +
        public static Projection slice(String field, + Integer start, + Integer end)
        +
        Specifies the number of elements in an array to return in the query result. +
        + 
        + // Return the first two elements
        + { $slice: 2 }
        +
        + // Return the last two elements
        + { $slice: -2 }
        +
        + // Skip 4 elements (from 0th index), return the next 2
        + { $slice: [4, 2] }
        +
        + // Skip backward 4 elements, return next 2 elements (forward)
        + { $slice: [-4, 2] }
        + 
        + 
        +
        +
        Parameters:
        +
        field - field name for slice
        +
        start - start index of slice
        +
        end - end index of slice
        +
        Returns:
        +
        a projection for the slide
        +
        +
        +
      • +
      • +
        +

        exclude

        +
        public static Projection[] exclude(String... field)
        +
        Exclude a field in the result.
        +
        +
        Parameters:
        +
        field - field name to exclude
        +
        Returns:
        +
        list of projection
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/ReplaceOneOptions.Builder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/ReplaceOneOptions.Builder.html new file mode 100644 index 0000000..c1d9040 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/ReplaceOneOptions.Builder.html @@ -0,0 +1,169 @@ + + + + +ReplaceOneOptions.Builder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class ReplaceOneOptions.Builder

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.ReplaceOneOptions.Builder
    +
    +
    +
    +
    Enclosing class:
    +
    ReplaceOneOptions
    +
    +
    +
    @Deprecated +public static class ReplaceOneOptions.Builder +extends Object
    +
    Deprecated.
    +
    Builder for creating ReplaceOneOptions instances with a fluent API.
    +
    +
    + +
    +
    + +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/ReplaceOneOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/ReplaceOneOptions.html new file mode 100644 index 0000000..b03f362 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/ReplaceOneOptions.html @@ -0,0 +1,222 @@ + + + + +ReplaceOneOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class ReplaceOneOptions

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.CommandOptions<ReplaceOneOptions> +
    com.datastax.astra.client.model.ReplaceOneOptions
    +
    +
    +
    +
    +
    public class ReplaceOneOptions +extends CommandOptions<ReplaceOneOptions>
    +
    Options for the replaceOne operation.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        ReplaceOneOptions

        +
        public ReplaceOneOptions()
        +
        Default constructor.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        upsert

        +
        public ReplaceOneOptions upsert(Boolean upsert)
        +
        Upsert flag.
        +
        +
        Parameters:
        +
        upsert - upsert flag
        +
        Returns:
        +
        current command.
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/ReturnDocument.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/ReturnDocument.html new file mode 100644 index 0000000..a882caf --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/ReturnDocument.html @@ -0,0 +1,244 @@ + + + + +ReturnDocument (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Enum ReturnDocument

    +
    +
    java.lang.Object +
    java.lang.Enum<ReturnDocument> +
    com.datastax.astra.client.model.ReturnDocument
    +
    +
    +
    +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<ReturnDocument>, java.lang.constant.Constable
    +
    +
    +
    public enum ReturnDocument +extends Enum<ReturnDocument>
    +
    Enum to define the return document option.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Enum Constant Details

      +
        +
      • +
        +

        BEFORE

        +
        public static final ReturnDocument BEFORE
        +
        if set to before, the command will return the document before the update
        +
        +
      • +
      • +
        +

        AFTER

        +
        public static final ReturnDocument AFTER
        +
        if set to after, the command will return the document after the update
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        values

        +
        public static ReturnDocument[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared.
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
        +
      • +
      • +
        +

        valueOf

        +
        public static ReturnDocument valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/SimilarityMetric.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/SimilarityMetric.html new file mode 100644 index 0000000..7bde8a4 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/SimilarityMetric.html @@ -0,0 +1,273 @@ + + + + +SimilarityMetric (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Enum SimilarityMetric

    +
    +
    java.lang.Object +
    java.lang.Enum<SimilarityMetric> +
    com.datastax.astra.client.model.SimilarityMetric
    +
    +
    +
    +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<SimilarityMetric>, java.lang.constant.Constable
    +
    +
    +
    public enum SimilarityMetric +extends Enum<SimilarityMetric>
    +
    Similarity metric.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Enum Constant Details

      +
        +
      • +
        +

        COSINE

        +
        public static final SimilarityMetric COSINE
        +
        Distance with cosine.
        +
        +
      • +
      • +
        +

        EUCLIDEAN

        +
        public static final SimilarityMetric EUCLIDEAN
        +
        Distance with Euclidean (L2).
        +
        +
      • +
      • +
        +

        DOT_PRODUCT

        +
        public static final SimilarityMetric DOT_PRODUCT
        +
        Distance with dot+product (L1).
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        values

        +
        public static SimilarityMetric[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared.
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
        +
      • +
      • +
        +

        valueOf

        +
        public static SimilarityMetric valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
        +
      • +
      • +
        +

        fromValue

        +
        public static SimilarityMetric fromValue(String value)
        +
        Build from the key.
        +
        +
        Parameters:
        +
        value - similarity value
        +
        Returns:
        +
        similarity enum
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/Sort.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/Sort.html new file mode 100644 index 0000000..d7f854a --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/Sort.html @@ -0,0 +1,162 @@ + + + + +Sort (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Sort

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.Sort
    +
    +
    +
    +
    public class Sort +extends Object
    +
    Class to help building a projection.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Sort

        +
        public Sort(String field, + SortOrder order)
        +
        Default Constructor.
        +
        +
        Parameters:
        +
        field - field name
        +
        order - field ordering instruction
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/SortOrder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/SortOrder.html new file mode 100644 index 0000000..a713364 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/SortOrder.html @@ -0,0 +1,244 @@ + + + + +SortOrder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Enum SortOrder

    +
    +
    java.lang.Object +
    java.lang.Enum<SortOrder> +
    com.datastax.astra.client.model.SortOrder
    +
    +
    +
    +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<SortOrder>, java.lang.constant.Constable
    +
    +
    +
    public enum SortOrder +extends Enum<SortOrder>
    +
    Encode the sort order in results.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Enum Constant Details

      +
        +
      • +
        +

        ASCENDING

        +
        public static final SortOrder ASCENDING
        +
        Value for ascending order.
        +
        +
      • +
      • +
        +

        DESCENDING

        +
        public static final SortOrder DESCENDING
        +
        Value for descending order.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        values

        +
        public static SortOrder[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared.
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
        +
      • +
      • +
        +

        valueOf

        +
        public static SortOrder valueOf(String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum type has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/Sorts.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/Sorts.html new file mode 100644 index 0000000..f31e7f8 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/Sorts.html @@ -0,0 +1,215 @@ + + + + +Sorts (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Sorts

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.Sorts
    +
    +
    +
    +
    public class Sorts +extends Object
    +
    Utility class to hold the sort options for a query.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        ascending

        +
        public static Sort ascending(String field)
        +
        Build a sort clause ascending.
        +
        +
        Parameters:
        +
        field - current field
        +
        Returns:
        +
        sort instance.
        +
        +
        +
      • +
      • +
        +

        descending

        +
        public static Sort descending(String field)
        +
        Build a sort clause DESCENDING.
        +
        +
        Parameters:
        +
        field - current field
        +
        Returns:
        +
        sort instance.
        +
        +
        +
      • +
      • +
        +

        vector

        +
        public static Document vector(float[] embeddings)
        +
        Build a sort clause with a vector.
        +
        +
        Parameters:
        +
        embeddings - vector of embeddings
        +
        Returns:
        +
        sort instance.
        +
        +
        +
      • +
      • +
        +

        vectorize

        +
        public static Document vectorize(String vectorize)
        +
        Build a sort clause with vectorize.
        +
        +
        Parameters:
        +
        vectorize - vector of embeddings
        +
        Returns:
        +
        sort instance.
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/UUIDv6.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/UUIDv6.html new file mode 100644 index 0000000..fc6cb30 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/UUIDv6.html @@ -0,0 +1,235 @@ + + + + +UUIDv6 (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class UUIDv6

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.UUIDv6
    +
    +
    +
    +
    public class UUIDv6 +extends Object
    +
    Materializing the UUIDv6 as a specialization class to drive serialization and deserialization.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        UUIDv6

        +
        public UUIDv6()
        +
        Default constructor.
        +
        +
      • +
      • +
        +

        UUIDv6

        +
        public UUIDv6(UUID uuid)
        +
        Constructor.
        +
        +
        Parameters:
        +
        uuid - uuid
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        toUUID

        +
        public UUID toUUID()
        +
        Return the Java Utils UUID.
        +
        +
        Returns:
        +
        uuid value
        +
        +
        +
      • +
      • +
        +

        toString

        +
        public String toString()
        +
        +
        Overrides:
        +
        toString in class Object
        +
        +
        +
      • +
      • +
        +

        fromString

        +
        public static UUIDv6 fromString(String strUUID)
        +
        Generate from a string.
        +
        +
        Parameters:
        +
        strUUID - uuid as a String
        +
        Returns:
        +
        an instance of UUIDv6
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/UUIDv7.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/UUIDv7.html new file mode 100644 index 0000000..a6a8b25 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/UUIDv7.html @@ -0,0 +1,235 @@ + + + + +UUIDv7 (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class UUIDv7

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.UUIDv7
    +
    +
    +
    +
    public class UUIDv7 +extends Object
    +
    Materializing the UUIDv6 as a specialization class to drive serialization and deserialization.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        UUIDv7

        +
        public UUIDv7()
        +
        Default constructor.
        +
        +
      • +
      • +
        +

        UUIDv7

        +
        public UUIDv7(UUID uuid)
        +
        Constructor.
        +
        +
        Parameters:
        +
        uuid - unique identifier
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        toUUID

        +
        public UUID toUUID()
        +
        Return the Java Utils UUID.
        +
        +
        Returns:
        +
        uuid value
        +
        +
        +
      • +
      • +
        +

        toString

        +
        public String toString()
        +
        +
        Overrides:
        +
        toString in class Object
        +
        +
        +
      • +
      • +
        +

        fromString

        +
        public static UUIDv7 fromString(String strUUID)
        +
        Generate from a string.
        +
        +
        Parameters:
        +
        strUUID - uuid as a String
        +
        Returns:
        +
        an instance of UUIDv6
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/Update.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/Update.html new file mode 100644 index 0000000..0bebe71 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/Update.html @@ -0,0 +1,519 @@ + + + + +Update (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Update

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.Document +
    com.datastax.astra.client.model.Update
    +
    +
    +
    +
    +
    All Implemented Interfaces:
    +
    Serializable, Map<String,Object>
    +
    +
    +
    public class Update +extends Document
    +
    Encore the update document
    +
    +
    See Also:
    +
    + +
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Update

        +
        public Update()
        +
        Default constructor.
        +
        +
      • +
      • +
        +

        Update

        +
        public Update(String json)
        +
        Default constructor.
        +
        +
        Parameters:
        +
        json - filter expression as JSON
        +
        +
        +
      • +
      • +
        +

        Update

        +
        public Update(Map<String,Object> obj)
        +
        Default constructor.
        +
        +
        Parameters:
        +
        obj - filter expression as JSON
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        create

        +
        public static Update create()
        +
        Allow to creat a new instance.
        +
        +
        Returns:
        +
        a new instance
        +
        +
        +
      • +
      • +
        +

        inc

        +
        public Update inc(String key, + Double offset)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        key - field name
        +
        offset - increment value
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        unset

        +
        public Update unset(String fieldName)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        fieldName - field name
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        set

        +
        public Update set(String key, + Object value)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        key - field name
        +
        value - filed value
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        set

        +
        public Update set(Document fields)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        fields - ` + fields map
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        min

        +
        public Update min(String key, + Object value)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        key - field name
        +
        value - filed value
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        push

        +
        public Update push(String key, + Object value)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        key - field name
        +
        value - filed value
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        pop

        +
        public Update pop(String key, + Object value)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        key - field name
        +
        value - filed value
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        pushEach

        +
        public Update pushEach(String key, + List<Object> values, + Integer position)
        +
        Builder pattern.
        +
        +
        Parameters:
        +
        key - field name
        +
        values - filed list values
        +
        position - where to push in the list
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        addToSet

        +
        public Update addToSet(String key, + Object value)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        key - field name
        +
        value - filed value
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        rename

        +
        public Update rename(String key, + Object value)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        key - field name
        +
        value - filed value
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        updateCurrentDate

        +
        public Update updateCurrentDate(String... fields)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        fields - fields to rename
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        updateMul

        +
        public Update updateMul(Map<String,Double> fields)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        fields - fields to rename
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      • +
        +

        updateSetOnInsert

        +
        public Update updateSetOnInsert(Map<String,Double> fields)
        +
        Builder pattern
        +
        +
        Parameters:
        +
        fields - fields to rename
        +
        Returns:
        +
        reference to self
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateManyOptions.Builder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateManyOptions.Builder.html new file mode 100644 index 0000000..ca7feaa --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateManyOptions.Builder.html @@ -0,0 +1,169 @@ + + + + +UpdateManyOptions.Builder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class UpdateManyOptions.Builder

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.UpdateManyOptions.Builder
    +
    +
    +
    +
    Enclosing class:
    +
    UpdateManyOptions
    +
    +
    +
    @Deprecated +public static class UpdateManyOptions.Builder +extends Object
    +
    Deprecated.
    +
    Builder for creating UpdateManyOptions instances with a fluent API.
    +
    +
    + +
    +
    + +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateManyOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateManyOptions.html new file mode 100644 index 0000000..1189ff3 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateManyOptions.html @@ -0,0 +1,222 @@ + + + + +UpdateManyOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class UpdateManyOptions

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.CommandOptions<UpdateManyOptions> +
    com.datastax.astra.client.model.UpdateManyOptions
    +
    +
    +
    +
    +
    public class UpdateManyOptions +extends CommandOptions<UpdateManyOptions>
    +
    Options for the updateOne operation
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        UpdateManyOptions

        +
        public UpdateManyOptions()
        +
        Default constructor.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        upsert

        +
        public UpdateManyOptions upsert(Boolean upsert)
        +
        Upsert flag.
        +
        +
        Parameters:
        +
        upsert - upsert flag
        +
        Returns:
        +
        current command.
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateOneOptions.Builder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateOneOptions.Builder.html new file mode 100644 index 0000000..160ffe6 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateOneOptions.Builder.html @@ -0,0 +1,235 @@ + + + + +UpdateOneOptions.Builder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class UpdateOneOptions.Builder

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.UpdateOneOptions.Builder
    +
    +
    +
    +
    Enclosing class:
    +
    UpdateOneOptions
    +
    +
    +
    @Deprecated +public static class UpdateOneOptions.Builder +extends Object
    +
    Deprecated.
    +
    Builder for creating UpdateOneOptions instances with a fluent API.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        upsert

        +
        public static UpdateOneOptions upsert(boolean upsert)
        +
        Deprecated.
        +
        Create a new instance of UpdateOneOptions.
        +
        +
        Parameters:
        +
        upsert - upsert flag
        +
        Returns:
        +
        new instance of UpdateOneOptions.
        +
        +
        +
      • +
      • +
        +

        sort

        +
        public static UpdateOneOptions sort(Sort... sort)
        +
        Deprecated.
        +
        Initializes the building process with sorting options.
        +
        +
        Parameters:
        +
        sort - The sort criteria to be applied to the delete operation.
        +
        Returns:
        +
        A new UpdateOneOptions instance configured with the provided sort criteria.
        +
        +
        +
      • +
      • +
        +

        vectorize

        +
        public static UpdateOneOptions vectorize(String vectorize, + Sort... sort)
        +
        Deprecated.
        +
        Initializes the building process with sorting options.
        +
        +
        Parameters:
        +
        vectorize - The sort criteria to be applied to the delete operation.
        +
        sort - The sort criteria to be applied to the delete operation.
        +
        Returns:
        +
        A new UpdateOneOptions instance configured with the provided sort criteria.
        +
        +
        +
      • +
      • +
        +

        vector

        +
        public static UpdateOneOptions vector(float[] vector, + Sort... sort)
        +
        Deprecated.
        +
        Initializes the building process with sorting options.
        +
        +
        Parameters:
        +
        vector - The sort criteria to be applied to the delete operation.
        +
        sort - The sort criteria to be applied to the delete operation.
        +
        Returns:
        +
        A new UpdateOneOptions instance configured with the provided sort criteria.
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateOneOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateOneOptions.html new file mode 100644 index 0000000..f528e33 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateOneOptions.html @@ -0,0 +1,282 @@ + + + + +UpdateOneOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class UpdateOneOptions

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.CommandOptions<UpdateOneOptions> +
    com.datastax.astra.client.model.UpdateOneOptions
    +
    +
    +
    +
    +
    public class UpdateOneOptions +extends CommandOptions<UpdateOneOptions>
    +
    Options for the updateOne operation
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        UpdateOneOptions

        +
        public UpdateOneOptions()
        +
        Default constructor.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        upsert

        +
        public UpdateOneOptions upsert(Boolean upsert)
        +
        Upsert flag.
        +
        +
        Parameters:
        +
        upsert - upsert flag
        +
        Returns:
        +
        current command.
        +
        +
        +
      • +
      • +
        +

        sort

        +
        public UpdateOneOptions sort(Sort... sort)
        +
        Syntax sugar as delete option is only a sort
        +
        +
        Parameters:
        +
        sort - add a filter
        +
        Returns:
        +
        current command.
        +
        +
        +
      • +
      • +
        +

        vectorize

        +
        public UpdateOneOptions vectorize(String vectorize, + Sort... sorts)
        +
        Add a criteria with $vectorize in the sort clause
        +
        +
        Parameters:
        +
        vectorize - an expression to look for vectorization
        +
        sorts - The sort criteria to be applied to the delete operation.
        +
        Returns:
        +
        current command
        +
        +
        +
      • +
      • +
        +

        vector

        +
        public UpdateOneOptions vector(float[] vector, + Sort... sorts)
        +
        Add a criteria with $vector in the sort clause
        +
        +
        Parameters:
        +
        vector - vector float
        +
        sorts - The sort criteria to be applied to the delete operation.
        +
        Returns:
        +
        current command
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateResult.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateResult.html new file mode 100644 index 0000000..b311f52 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/UpdateResult.html @@ -0,0 +1,155 @@ + + + + +UpdateResult (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class UpdateResult

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.UpdateResult
    +
    +
    +
    +
    public class UpdateResult +extends Object
    +
    Return update result.
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        UpdateResult

        +
        public UpdateResult()
        +
        Default constructor.
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/Updates.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/Updates.html new file mode 100644 index 0000000..5605738 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/Updates.html @@ -0,0 +1,368 @@ + + + + +Updates (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Updates

    +
    +
    java.lang.Object +
    com.datastax.astra.client.model.Updates
    +
    +
    +
    +
    public class Updates +extends Object
    +
    Helper for Syntax with updates.
    +
    +
    + +
    +
    + +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteOptions.Builder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteOptions.Builder.html new file mode 100644 index 0000000..b67d101 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteOptions.Builder.html @@ -0,0 +1,63 @@ + + + + +Uses of Class com.datastax.astra.client.model.BulkWriteOptions.Builder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.datastax.astra.client.model.BulkWriteOptions.Builder

    +
    +No usage of com.datastax.astra.client.model.BulkWriteOptions.Builder
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteOptions.html new file mode 100644 index 0000000..5150a76 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteOptions.html @@ -0,0 +1,128 @@ + + + + +Uses of Class com.datastax.astra.client.model.BulkWriteOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.datastax.astra.client.model.BulkWriteOptions

    +
    +
    Packages that use BulkWriteOptions
    +
    +
    Package
    +
    Description
    + +
    +
    Entrypoint and core classes for the client.
    +
    + +
    +
    Domain model classes with Requests, Results, Options and Iterables.
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteResult.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteResult.html new file mode 100644 index 0000000..940bf0e --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/BulkWriteResult.html @@ -0,0 +1,98 @@ + + + + +Uses of Class com.datastax.astra.client.model.BulkWriteResult (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.datastax.astra.client.model.BulkWriteResult

    +
    +
    Packages that use BulkWriteResult
    +
    +
    Package
    +
    Description
    + +
    +
    Entrypoint and core classes for the client.
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionIdTypes.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionIdTypes.html new file mode 100644 index 0000000..115bac5 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionIdTypes.html @@ -0,0 +1,114 @@ + + + + +Uses of Enum com.datastax.astra.client.model.CollectionIdTypes (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Enum
    com.datastax.astra.client.model.CollectionIdTypes

    +
    +
    Packages that use CollectionIdTypes
    +
    +
    Package
    +
    Description
    + +
    +
    Domain model classes with Requests, Results, Options and Iterables.
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionInfo.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionInfo.html new file mode 100644 index 0000000..e00f8f2 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionInfo.html @@ -0,0 +1,103 @@ + + + + +Uses of Class com.datastax.astra.client.model.CollectionInfo (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.datastax.astra.client.model.CollectionInfo

    +
    +
    Packages that use CollectionInfo
    +
    +
    Package
    +
    Description
    + +
    +
    Entrypoint and core classes for the client.
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.CollectionOptionsBuilder.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.CollectionOptionsBuilder.html new file mode 100644 index 0000000..6ac93b7 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.CollectionOptionsBuilder.html @@ -0,0 +1,144 @@ + + + + +Uses of Class com.datastax.astra.client.model.CollectionOptions.CollectionOptionsBuilder (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.datastax.astra.client.model.CollectionOptions.CollectionOptionsBuilder

    +
    + +
    +
    Package
    +
    Description
    + +
    +
    Domain model classes with Requests, Results, Options and Iterables.
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.DefaultIdOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.DefaultIdOptions.html new file mode 100644 index 0000000..bc4a037 --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.DefaultIdOptions.html @@ -0,0 +1,63 @@ + + + + +Uses of Class com.datastax.astra.client.model.CollectionOptions.DefaultIdOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.datastax.astra.client.model.CollectionOptions.DefaultIdOptions

    +
    +No usage of com.datastax.astra.client.model.CollectionOptions.DefaultIdOptions
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.IndexingOptions.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.IndexingOptions.html new file mode 100644 index 0000000..93e03ff --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.IndexingOptions.html @@ -0,0 +1,63 @@ + + + + +Uses of Class com.datastax.astra.client.model.CollectionOptions.IndexingOptions (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.datastax.astra.client.model.CollectionOptions.IndexingOptions

    +
    +No usage of com.datastax.astra.client.model.CollectionOptions.IndexingOptions
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.Parameters.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.Parameters.html new file mode 100644 index 0000000..5d965ae --- /dev/null +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.Parameters.html @@ -0,0 +1,63 @@ + + + + +Uses of Class com.datastax.astra.client.model.CollectionOptions.Parameters (Java Client Library for Data API 1.2.0 API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.datastax.astra.client.model.CollectionOptions.Parameters

    +
    +No usage of com.datastax.astra.client.model.CollectionOptions.Parameters
    +
    +
    + +
    +
    +
    + + diff --git a/astra-db-java/latest/com/datastax/astra/client/model/class-use/CollectionOptions.Authentication.html b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.Service.html similarity index 81% rename from astra-db-java/latest/com/datastax/astra/client/model/class-use/CollectionOptions.Authentication.html rename to astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.Service.html index 08fb2bc..8fa3dcc 100644 --- a/astra-db-java/latest/com/datastax/astra/client/model/class-use/CollectionOptions.Authentication.html +++ b/astra-db-java/1.2.0/com/datastax/astra/client/model/class-use/CollectionOptions.Service.html @@ -1,12 +1,12 @@ - -Uses of Class com.datastax.astra.client.model.CollectionOptions.Authentication (Java Client Library for Data API 1.1 API) + +Uses of Class com.datastax.astra.client.model.CollectionOptions.Service (Java Client Library for Data API 1.2.0 API) - - + + @@ -29,9 +29,10 @@ @@ -49,9 +50,9 @@
    -

    Uses of Class
    com.datastax.astra.client.model.CollectionOptions.Authentication

    +

    Uses of Class
    com.datastax.astra.client.model.CollectionOptions.Service

    -No usage of com.datastax.astra.client.model.CollectionOptions.Authentication
    +No usage of com.datastax.astra.client.model.CollectionOptions.Service