Class CollectionReplaceOneOptions
java.lang.Object
com.datastax.astra.client.core.options.BaseOptions<CollectionReplaceOneOptions>
com.datastax.astra.client.collections.commands.options.CollectionReplaceOneOptions
- All Implemented Interfaces:
Cloneable
Options for the replaceOne operation.
-
Field Summary
Fields inherited from class com.datastax.astra.client.core.options.BaseOptions
commandType, dataAPIClientOptions, serializer, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSort[]Get the sort options.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.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, logRequest, registerObserver, rerankingApiKey, rerankingAuthProvider, serializer, timeout, timeout, timeout, timeoutOptions, token, toString, unregisterObserver
-
Constructor Details
-
CollectionReplaceOneOptions
public CollectionReplaceOneOptions()Default constructor.
-
-
Method Details
-
returnDocument
Adding this on top of projection(Projection[] p) to allow for a more fluent API.- Parameters:
doc- ReturnDocument value- Returns:
- current command
-
sort
Adding this on top of sort(Sort[] s) to allow for a more fluent API.- Parameters:
s- sort options- Returns:
- current command
-
getSortArray
Get the sort options.- Returns:
- sort options
-