Uses of Class
com.datastax.astra.client.model.InsertOneOptions
-
Uses of InsertOneOptions in com.datastax.astra.client
Modifier and TypeMethodDescriptionfinal InsertOneResult
Collection.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 InsertOneResult
Collection.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 InsertOneResult
Collection.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.final CompletableFuture
<InsertOneResult> Collection.insertOneAsync
(T document, InsertOneOptions options) Asynchronous implementation ofCollection.insertOne(Object, InsertOneOptions)
.