java.lang.Object
org.eclipse.jnosql.databases.scylladb.communication.ScyllaDBQuery
All Implemented Interfaces:
org.eclipse.jnosql.communication.semistructured.SelectQuery

public final class ScyllaDBQuery extends Object implements org.eclipse.jnosql.communication.semistructured.SelectQuery
A ScyllaDB specialization of SelectQuery that allows query with paging state which can do pagination.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jnosql.communication.semistructured.SelectQuery

    org.eclipse.jnosql.communication.semistructured.SelectQuery.QueryBuilder, org.eclipse.jnosql.communication.semistructured.SelectQuery.QueryBuilderProvider, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectElements, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectFrom, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectLimit, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectNameCondition, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectNameOrder, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectNotCondition, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectOrder, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectProvider, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectQueryBuild, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectSkip, org.eclipse.jnosql.communication.semistructured.SelectQuery.SelectWhere
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Optional<org.eclipse.jnosql.communication.semistructured.CriteriaCondition>
     
    boolean
     
    pagingState
    int
     
    long
     
     
    of(org.eclipse.jnosql.communication.semistructured.SelectQuery query)
    returns a new instance of ScyllaDBQuery
    of(org.eclipse.jnosql.communication.semistructured.SelectQuery query, String pagingState)
    returns a new instance of ScyllaDBQuery
    long
     
    List<jakarta.data.Sort<?>>
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jnosql.communication.semistructured.SelectQuery

    isCount
  • Method Details

    • getPagingState

      public Optional<String> getPagingState()
      pagingState
      Returns:
      the pagingState
    • limit

      public long limit()
      Specified by:
      limit in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • skip

      public long skip()
      Specified by:
      skip in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • name

      public String name()
      Specified by:
      name in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • condition

      public Optional<org.eclipse.jnosql.communication.semistructured.CriteriaCondition> condition()
      Specified by:
      condition in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • sorts

      public List<jakarta.data.Sort<?>> sorts()
      Specified by:
      sorts in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • columns

      public List<String> columns()
      Specified by:
      columns in interface org.eclipse.jnosql.communication.semistructured.SelectQuery
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static ScyllaDBQuery of(org.eclipse.jnosql.communication.semistructured.SelectQuery query)
      returns a new instance of ScyllaDBQuery
      Parameters:
      query - the SelectQuery
      Returns:
      a new instance
      Throws:
      NullPointerException - when query is null
    • of

      public static ScyllaDBQuery of(org.eclipse.jnosql.communication.semistructured.SelectQuery query, String pagingState)
      returns a new instance of ScyllaDBQuery
      Parameters:
      query - the SelectQuery
      pagingState - pagingState
      Returns:
      a new instance
      Throws:
      NullPointerException - when there is null parameter