Class CollectionFindOneAndReplaceOptions

java.lang.Object
com.datastax.astra.client.core.options.BaseOptions<CollectionFindOneAndReplaceOptions>
com.datastax.astra.client.collections.commands.options.CollectionFindOneAndReplaceOptions
All Implemented Interfaces:
Cloneable

public class CollectionFindOneAndReplaceOptions extends BaseOptions<CollectionFindOneAndReplaceOptions>
Options used in the `findAndReplace` command.
  • Constructor Details

    • CollectionFindOneAndReplaceOptions

      public CollectionFindOneAndReplaceOptions()
      Default constructor.
  • Method Details

    • sort

      Adding this on top of sort(Sort[] s) to allow for a more fluent API.
      Parameters:
      s - sort options
      Returns:
      current command
    • projection

      Adding this on top of projection(Projection[] p) to allow for a more fluent API.
      Parameters:
      p - projection options
      Returns:
      current command
    • returnDocument

      Adding this on top of projection(Projection[] p) to allow for a more fluent API.
      Parameters:
      doc - ReturnDocument value
      Returns:
      current command
    • getSortArray

      public Sort[] getSortArray()
      Get the sort options.
      Returns:
      sort options
    • getProjectionArray

      public Projection[] getProjectionArray()
      Adding this on top of sort(Sort[] s) to allow for a more fluent API.
      Returns:
      project