Class CollectionFindAndRerankOptions

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

public class CollectionFindAndRerankOptions extends BaseOptions<CollectionFindAndRerankOptions>
List Options for a FindOne command.
  • Constructor Details

    • CollectionFindAndRerankOptions

      public CollectionFindAndRerankOptions()
      Default constructor.
  • Method Details

    • hybridSort

      public CollectionFindAndRerankOptions hybridSort(Hybrid hybrid)
      Adding this on top of sort(Sort[] s) to allow for a more fluent API.
      Parameters:
      hybrid - hybrid
      Returns:
      current command
    • sort

      public CollectionFindAndRerankOptions sort(Sort... sorts)
      Adding this on top of sort(Sort[] s) to allow for a more fluent API.
      Parameters:
      sorts - sorts criteria
      Returns:
      current command
    • getSortArray

      public Sort[] getSortArray()
      Return the sort clause as an arryr
      Returns:
      Sort clause
    • getProjectionArray

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

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

      public CollectionFindAndRerankOptions limit(int limit)
      Add a limit clause in the find block
      Parameters:
      limit - value for limit options
      Returns:
      current command
    • hybridLimits

      public CollectionFindAndRerankOptions hybridLimits(int hybridLimits)
      Add a hybridLimits clause in the find block
      Parameters:
      hybridLimits - value for limit options
      Returns:
      current command
    • hybridLimits

      public CollectionFindAndRerankOptions hybridLimits(Map<String,Integer> hybridMapLimits)
      Add a hybridLimits clause in the find block
      Parameters:
      hybridMapLimits - value for limit options
      Returns:
      current command
    • rerankOn

      public CollectionFindAndRerankOptions rerankOn(String rerankOn)
      Add a rerankOn clause in the find block
      Parameters:
      rerankOn - value for rerankOn options
      Returns:
      current command
    • rerankQuery

      public CollectionFindAndRerankOptions rerankQuery(String rerankQuery)
      Add a rerankQuery clause in the find block
      Parameters:
      rerankQuery - value for rerankQuery options
      Returns:
      current command