Class FindOneAndUpdateOptions.Builder

java.lang.Object
com.datastax.astra.client.model.FindOneAndUpdateOptions.Builder
Enclosing class:
FindOneAndUpdateOptions

@Deprecated public static class FindOneAndUpdateOptions.Builder extends Object
Deprecated.
Builder for creating FindOneAndUpdateOptions instances with a fluent API.
  • Method Details

    • sort

      public static FindOneAndUpdateOptions sort(Sort... sort)
      Deprecated.
      Initializes the building process with sorting options.
      Parameters:
      sort - The sort criteria to be applied to the findOneAndUpdate operation.
      Returns:
      A new FindOneAndUpdateOptions instance configured with the provided sort criteria.
    • projection

      public static FindOneAndUpdateOptions projection(Projection... projection)
      Deprecated.
      Initializes the building process with projection options.
      Parameters:
      projection - The projection criteria to be applied to the findOneAndUpdate operation.
      Returns:
      A new FindOneAndUpdateOptions instance configured with the provided projection criteria.
    • returnDocumentAfter

      public static FindOneAndUpdateOptions returnDocumentAfter()
      Deprecated.
      Initializes the building process with returnDocument options.
      Returns:
      A new FindOneAndReplaceOptions instance configured with the provided returnDocument criteria.
    • returnDocumentBefore

      public static FindOneAndUpdateOptions returnDocumentBefore()
      Deprecated.
      Initializes the building process with returnDocument options.
      Returns:
      A new FindOneAndReplaceOptions instance configured with the provided returnDocument criteria.
    • upsert

      public static FindOneAndUpdateOptions upsert(Boolean upsert)
      Deprecated.
      Initializes the building process with upsert options.
      Parameters:
      upsert - The upsert criteria to be applied to the findOneAndUpdate operation.
      Returns:
      A new FindOneAndUpdateOptions instance configured with the provided upsert criteria.
    • sort

      public static FindOneAndUpdateOptions sort(String vectorize, Sort... sorts)
      Deprecated.
      Initializes the building process with vectorize options.
      Parameters:
      vectorize - The vectorize criteria to be applied to the findOne operation
      sorts - The sort criteria to be applied to the findOne operation.
      Returns:
      A new FindOneAndUpdateOptions instance configured with the provided vectorize criteria.
    • sort

      public static FindOneAndUpdateOptions sort(float[] vector, Sort... sorts)
      Deprecated.
      Initializes the building process with vector options.
      Parameters:
      vector - The vector criteria to be applied to the findOne operation
      sorts - The sort criteria to be applied to the findOne operation.
      Returns:
      A new FindOneAndUpdateOptions instance configured with the provided vector criteria.