Class CollectionFindAndRerankOptions
java.lang.Object
com.datastax.astra.client.core.options.BaseOptions<CollectionFindAndRerankOptions>
com.datastax.astra.client.collections.commands.options.CollectionFindAndRerankOptions
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdding this on top of sort(Sort[] s) to allow for a more fluent API.Sort[]
Return the sort clause as an arryrhybridLimits
(int hybridLimits) Add a hybridLimits clause in the find blockhybridLimits
(Map<String, Integer> hybridMapLimits) Add a hybridLimits clause in the find blockhybridSort
(Hybrid hybrid) Adding this on top of sort(Sort[] s) to allow for a more fluent API.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.Add a rerankOn clause in the find blockrerankQuery
(String rerankQuery) Add a rerankQuery 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, rerankingApiKey, rerankingAuthProvider, serializer, timeout, timeout, timeout, timeoutOptions, token, toString, unregisterObserver
-
Constructor Details
-
CollectionFindAndRerankOptions
public CollectionFindAndRerankOptions()Default constructor.
-
-
Method Details
-
hybridSort
Adding this on top of sort(Sort[] s) to allow for a more fluent API.- Parameters:
hybrid
- hybrid- Returns:
- current command
-
sort
Adding this on top of sort(Sort[] s) to allow for a more fluent API.- Parameters:
sorts
- sorts criteria- Returns:
- current command
-
getSortArray
Return the sort clause as an arryr- Returns:
- Sort clause
-
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
-
limit
Add a limit clause in the find block- Parameters:
limit
- value for limit options- Returns:
- current command
-
hybridLimits
Add a hybridLimits clause in the find block- Parameters:
hybridLimits
- value for limit options- Returns:
- current command
-
hybridLimits
Add a hybridLimits clause in the find block- Parameters:
hybridMapLimits
- value for limit options- Returns:
- current command
-
rerankOn
Add a rerankOn clause in the find block- Parameters:
rerankOn
- value for rerankOn options- Returns:
- current command
-
rerankQuery
Add a rerankQuery clause in the find block- Parameters:
rerankQuery
- value for rerankQuery options- Returns:
- current command
-