java.lang.Object
org.springframework.data.aerospike.repository.query.Query

public class Query extends Object
Author:
Peter Milne, Jean Mercier
  • Constructor Details

    • Query

      public Query(CriteriaDefinition criteria)
      Creates new instance of Query with given criteria.
      Parameters:
      criteria - can be null.
  • Method Details

    • getCriteria

      public CriteriaDefinition getCriteria()
      Get the CriteriaDefinition object.
    • getCriteriaObject

      public Qualifier getCriteriaObject()
      Get the Qualifier object.
    • getSort

      public Sort getSort()
      Get Sort.
    • setSort

      public void setSort(Sort sort)
      Set Sort to be applied.
    • getOffset

      public long getOffset()
      Number of elements to skip.
      Returns:
      negative value if not set.
    • setOffset

      public void setOffset(long offset)
      Set the number of elements to skip.
      Parameters:
      offset - use negative value for none.
    • hasOffset

      public boolean hasOffset()
    • hasRows

      public boolean hasRows()
    • getRows

      public int getRows()
      Number of elements to read.
      Returns:
      negative value if not set.
    • setRows

      public void setRows(int rows)
      Set the number of elements to read.
    • orderBy

      public Query orderBy(Sort sort)
      Add given Sort.
      Parameters:
      sort - null Sort will be ignored.
    • skip

      public Query skip(long offset)
      See Also:
    • limit

      public Query limit(int rows)
      See Also:
    • with

      public Query with(Sort sort)