Uses of Class
com.datastax.astra.client.model.FindOneOptions
Package
Description
Entrypoint and core classes for the client.
Domain model classes with
Requests
, Results
, Options
and Iterables
.-
Uses of FindOneOptions in com.datastax.astra.client
Modifier and TypeMethodDescriptionCollection.findOne
(Filter filter, FindOneOptions findOneOptions) Attempts to find a single document within the collection that matches the given filter criteria.Collection.findOne
(FindOneOptions findOneOptions) Syntax sugar to provide a findOne command without a filter @seeCollection.findOne(Filter, FindOneOptions)
.Collection.findOneASync
(Filter filter, FindOneOptions findOneOptions) Asynchronously attempts to find a single document within the collection that matches the given filter criteria, utilizing the specifiedFindOneOptions
for the query. -
Uses of FindOneOptions in com.datastax.astra.client.model
Modifier and TypeMethodDescriptionFindOneOptions.includeSimilarity()
Fluent api.FindOneOptions.includeSortVector()
Fluent api.FindOneOptions.projection
(Projection... projection) Syntax sugar as delete option is only a sortAdd 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);