Uses of Class
com.datastax.astra.client.model.FindOneAndReplaceOptions
Package
Description
Entrypoint and core classes for the client.
Domain model classes with
Requests
, Results
, Options
and Iterables
.-
Uses of FindOneAndReplaceOptions in com.datastax.astra.client
Modifier and TypeMethodDescriptionCollection.findOneAndReplace
(Filter filter, T replacement, FindOneAndReplaceOptions options) Atomically find a document and replace it. -
Uses of FindOneAndReplaceOptions in com.datastax.astra.client.model
Modifier and TypeMethodDescriptionFindOneAndReplaceOptions.projection
(Projection... projection) Syntax sugar as delete option is only a sortFindOneAndReplaceOptions.returnDocumentAfter()
Builder Pattern, update the returnDocument flagFindOneAndReplaceOptions.returnDocumentBefore()
Builder Pattern, update the returnDocument flagAdd a criteria with $vector in the sort clauseSyntax sugar as delete option is only a sort Could be like Map.of("$vectorize", "command, "field1", 1, "field2", -1);Syntax sugar as delete option is only a sortAdd a criteria with $vectorize in the sort clause.Syntax sugar as delete option is only a sort Could be like Map.of("$vectorize", "command, "field1", 1, "field2", -1);Builder Pattern, update the upsert flag.