Class Query
java.lang.Object
org.springframework.data.aerospike.repository.query.Query
- Author:
- Peter Milne, Jean Mercier
-
Constructor Summary
ConstructorsConstructorDescriptionQuery
(CriteriaDefinition criteria) Creates new instance ofQuery
with given criteria. -
Method Summary
Modifier and TypeMethodDescriptionGet the CriteriaDefinition object.Get theQualifier
object.long
Number of elements to skip.int
getRows()
Number of elements to read.getSort()
GetSort
.boolean
boolean
hasRows()
limit
(int rows) Add givenSort
.void
setOffset
(long offset) Set the number of elements to skip.void
setRows
(int rows) Set the number of elements to read.void
SetSort
to be applied.skip
(long offset)
-
Constructor Details
-
Query
Creates new instance ofQuery
with given criteria.- Parameters:
criteria
- can be null.
-
-
Method Details
-
getCriteria
Get the CriteriaDefinition object. -
getCriteriaObject
Get theQualifier
object. -
getSort
GetSort
. -
setSort
SetSort
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
Add givenSort
.- Parameters:
sort
- nullSort
will be ignored.
-
skip
- See Also:
-
limit
- See Also:
-
with
-