Uses of Class
com.datastax.astra.client.model.InsertOneResult
Packages that use InsertOneResult
-
Uses of InsertOneResult in com.datastax.astra.client
Methods in com.datastax.astra.client that return InsertOneResultModifier and TypeMethodDescriptionfinal InsertOneResultInserts a single document into the collection as an atomic operation, ensuring that the document is added in a single, indivisible step.final InsertOneResultInserts a single document into the collection in an atomic operation, similar to theCollection.insertOne(Object)method, but with the additional capability to include vector embeddings.final InsertOneResultCollection.insertOne(T document, float[] embeddings, InsertOneOptions options) Inserts a single document into the collection in an atomic operation, similar to theCollection.insertOne(Object)method, but with the additional capability to include vector embeddings.final InsertOneResultCollection.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.final InsertOneResultInserts a single document into the collection in an atomic operation, extending the base functionality of theCollection.insertOne(Object)method by adding the capability to compute and include a vector of embeddings directly within the document.final InsertOneResultCollection.insertOne(T document, String vectorize, InsertOneOptions options) Inserts a single document into the collection in an atomic operation, extending the base functionality of theCollection.insertOne(Object)method by adding the capability to compute and include a vector of embeddings directly within the document.Methods in com.datastax.astra.client that return types with arguments of type InsertOneResultModifier and TypeMethodDescriptionfinal CompletableFuture<InsertOneResult> Collection.insertOneAsync(T document) Asynchronously inserts a single document into the collection.final CompletableFuture<InsertOneResult> Collection.insertOneAsync(T document, float[] embeddings) Asynchronously inserts a single document into the collection with vector embeddings.final CompletableFuture<InsertOneResult> Collection.insertOneAsync(T document, InsertOneOptions options) Asynchronous implementation ofCollection.insertOne(Object, InsertOneOptions).final CompletableFuture<InsertOneResult> Collection.insertOneAsync(T document, String vectorize) Asynchronously inserts a single document into the collection with a vectorization expression.