Package com.datastax.astra.client.model
Class UpdateOneOptions
java.lang.Object
com.datastax.astra.client.model.CommandOptions<UpdateOneOptions>
com.datastax.astra.client.model.UpdateOneOptions
Options for the updateOne operation
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.datastax.astra.client.model.CommandOptions
embeddingAuthProvider, httpClientOptions, observers, token
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSyntax sugar as delete option is only a sortUpsert flag.Add a criteria with $vector in the sort clauseAdd a criteria with $vectorize in the sort clauseMethods inherited from class com.datastax.astra.client.model.CommandOptions
embeddingAPIKey, embeddingAuthProvider, getEmbeddingAuthProvider, getHttpClientOptions, getToken, httpClientOptions, registerObserver, registerObserver, token, unregisterObserver, unregisterObserver
-
Constructor Details
-
UpdateOneOptions
public UpdateOneOptions()Default constructor.
-
-
Method Details
-
upsert
Upsert flag.- Parameters:
upsert
- upsert flag- Returns:
- current command.
-
sort
Syntax sugar as delete option is only a sort- Parameters:
sort
- add a filter- Returns:
- current command.
-
vectorize
Add a criteria with $vectorize in the sort clause- Parameters:
vectorize
- an expression to look for vectorizationsorts
- The sort criteria to be applied to the delete operation.- Returns:
- current command
-
vector
Add a criteria with $vector in the sort clause- Parameters:
vector
- vector floatsorts
- The sort criteria to be applied to the delete operation.- Returns:
- current command
-