Uses of Class
com.datastax.astra.client.collections.commands.options.CollectionFindOneOptions
Package
Description
Top package to interact with Collections
Options and Inputs for Collections commands.
-
Uses of CollectionFindOneOptions in com.datastax.astra.client.collections
Modifier and TypeMethodDescriptionCollection.findOne
(CollectionFindOneOptions findOneOptions) Syntax sugar to provide a findOne command without a filter @seeCollection.findOne(Filter, CollectionFindOneOptions)
.Collection.findOne
(Filter filter, CollectionFindOneOptions findOneOptions) Attempts to find a single document within the collection that matches the given filter criteria.Collection.findOneASync
(Filter filter, CollectionFindOneOptions findOneOptions) Asynchronously attempts to find a single document within the collection that matches the given filter criteria, utilizing the specifiedCollectionFindOneOptions
for the query. -
Uses of CollectionFindOneOptions in com.datastax.astra.client.collections.commands.options
Modifier and TypeMethodDescriptionCollectionFindOneOptions.projection
(Projection... p) Adding this on top of projection(Projection[] p) to allow for a more fluent API.Adding this on top of sort(Sort[] s) to allow for a more fluent API.