Class CollectionFindOptions
java.lang.Object
com.datastax.astra.client.core.options.BaseOptions<CollectionFindOptions>
com.datastax.astra.client.collections.commands.options.CollectionFindOptions
- All Implemented Interfaces:
Cloneable
List Options for a FindOne command.
-
Field Summary
Fields inherited from class com.datastax.astra.client.core.options.BaseOptions
commandType, dataAPIClientOptions, serializer, token
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdding this on top of sort(Sort[] s) to allow for a more fluent API.Sort[]
Get the sort options.limit
(int limit) Add a limit clause in the find blockprojection
(Projection... p) Adding this on top of projection(Projection[] p) to allow for a more fluent API.skip
(int skip) Add a skip clause in the find blockAdding this on top of sort(Sort[] s) to allow for a more fluent API.Methods inherited from class com.datastax.astra.client.core.options.BaseOptions
adminAdditionalHeaders, clone, commandType, dataAPIClientOptions, databaseAdditionalHeaders, embeddingApiKey, embeddingAuthProvider, getCommandType, getDataAPIClientOptions, getRequestTimeout, getRequestTimeout, getSerializer, getTimeout, getTimeout, getToken, httpClientOptions, registerObserver, serializer, timeout, timeout, timeout, timeoutOptions, token, toString, unregisterObserver
-
Constructor Details
-
CollectionFindOptions
public CollectionFindOptions()Default constructor.
-
-
Method Details
-
getSortArray
Get the sort options.- Returns:
- sort options
-
sort
Adding this on top of sort(Sort[] s) to allow for a more fluent API.- Parameters:
s
- sort options- Returns:
- current command
-
getProjectionArray
Adding this on top of sort(Sort[] s) to allow for a more fluent API.- Returns:
- project
-
projection
Adding this on top of projection(Projection[] p) to allow for a more fluent API.- Parameters:
p
- projection options- Returns:
- current command
-
skip
Add a skip clause in the find block- Parameters:
skip
- value for skip options- Returns:
- current command
-
limit
Add a limit clause in the find block- Parameters:
limit
- value for limit options- Returns:
- current command
-