Class TableFindOptions

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

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

    • TableFindOptions

      public TableFindOptions()
      Default constructor.
  • Method Details

    • skip

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

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

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

      public TableFindOptions projection(Projection... p)
      Adding this on top of sort(Sort[] s) to allow for a more fluent API.
      Parameters:
      p - projection options
      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