T - public class Query extends Object
| Constructor and Description |
|---|
Query(CriteriaDefinition criteria)
Creates new instance of
KeyValueQuery with given criteria. |
Query(Sort sort)
|
| Modifier and Type | Method and Description |
|---|---|
CriteriaDefinition |
getCriteria()
Get the criteria object.
|
long |
getOffset()
Number of elements to skip.
|
int |
getRows()
Number of elements to read.
|
Sort |
getSort()
Get
Sort. |
boolean |
hasOffset() |
boolean |
hasRows() |
Query |
limit(int rows) |
Query |
orderBy(Sort sort)
Add given
Sort. |
void |
setOffset(long offset)
Set the number of elements to skip.
|
void |
setRows(int rows)
Set the number of elements to read.
|
void |
setSort(Sort sort)
Set
Sort to be applied. |
Query |
skip(long offset) |
Query |
with(Sort sort) |
public Query(CriteriaDefinition criteria)
KeyValueQuery with given criteria.criteria - can be null.public Query(Sort sort)
sort - can be null.public CriteriaDefinition getCriteria()
public long getOffset()
public boolean hasOffset()
public boolean hasRows()
public int getRows()
public void setOffset(long offset)
offset - use negative value for none.public void setRows(int rows)
offset - use negative value for all.public Query orderBy(Sort sort)
Sort.sort - null Sort will be ignored.public Query skip(long offset)
offset - setOffset(long)public Query limit(int rows)
rows - setRows(int)Copyright © 2012–2020 Aerospike, Inc. All rights reserved.