Class Query
java.lang.Object
org.springframework.data.aerospike.repository.query.Query
- Author:
- Peter Milne, Jean Mercier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the criteria 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 ofKeyValueQuery
with given criteria.- Parameters:
criteria
- can be null.
-
Query
- Parameters:
sort
- can be null.
-
-
Method Details
-
getCriteria
Get the criteria object. -
getSort
GetSort
. -
getOffset
public long getOffset()Number of elements to skip.- Returns:
- negative value if not set.
-
hasOffset
public boolean hasOffset() -
hasRows
public boolean hasRows() -
getRows
public int getRows()Number of elements to read.- 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.
-
setRows
public void setRows(int rows) Set the number of elements to read. -
setSort
SetSort
to be applied. -
orderBy
Add givenSort
.- Parameters:
sort
- nullSort
will be ignored.
-
skip
- See Also:
-
limit
- See Also:
-
with
-