Package com.datastax.astra.client.model
Class DeleteOneOptions
java.lang.Object
com.datastax.astra.client.model.CommandOptions<DeleteOneOptions>
com.datastax.astra.client.model.DeleteOneOptions
Options to delete One document.
-
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 TypeMethodDescriptionAdd a criteria with $vector in the sort clauseSyntax sugar as delete option is only a sortAdd 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
-
DeleteOneOptions
public DeleteOneOptions()Default constructor.
-
-
Method Details
-
sort
Syntax sugar as delete option is only a sort- Parameters:
sort
- add a filter- Returns:
- current command.
-
sort
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 findOne operation.- Returns:
- current command
-
sort
Add a criteria with $vector in the sort clause- Parameters:
vector
- vector floatsorts
- The sort criteria to be applied to the findOne operation.- Returns:
- current command
-