Class DeleteOneOptions

java.lang.Object
com.datastax.astra.client.model.CommandOptions<DeleteOneOptions>
com.datastax.astra.client.model.DeleteOneOptions

public class DeleteOneOptions extends CommandOptions<DeleteOneOptions>
Options to delete One document.
  • Constructor Details

    • DeleteOneOptions

      public DeleteOneOptions()
      Default constructor.
  • Method Details

    • sort

      public DeleteOneOptions sort(Sort... sort)
      Syntax sugar as delete option is only a sort
      Parameters:
      sort - add a filter
      Returns:
      current command.
    • sort

      public DeleteOneOptions sort(String vectorize, Sort... sorts)
      Add a criteria with $vectorize in the sort clause
      Parameters:
      vectorize - an expression to look for vectorization
      sorts - The sort criteria to be applied to the findOne operation.
      Returns:
      current command
    • sort

      public DeleteOneOptions sort(float[] vector, Sort... sorts)
      Add a criteria with $vector in the sort clause
      Parameters:
      vector - vector float
      sorts - The sort criteria to be applied to the findOne operation.
      Returns:
      current command