Class TableFindOneOptions
java.lang.Object
com.datastax.astra.client.core.options.BaseOptions<TableFindOneOptions>
com.datastax.astra.client.tables.commands.options.TableFindOneOptions
- 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.projection
(Projection... p) Adding this on top of sort(Sort[] s) to allow for a more fluent API.Adding 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
-
TableFindOneOptions
public TableFindOneOptions()Default constructor.
-
-
Method Details
-
sort
Adding this on top of sort(Sort[] s) to allow for a more fluent API.- Parameters:
s
- sort options- Returns:
- current command
-
projection
Adding this on top of sort(Sort[] s) to allow for a more fluent API.- Parameters:
p
- projection options- Returns:
- current command
-
getSortArray
Get the sort options.- Returns:
- sort options
-
getProjectionArray
Adding this on top of sort(Sort[] s) to allow for a more fluent API.- Returns:
- project
-