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 |
getCritieria()
Get the criteria object.
|
int |
getOffset()
Number of elements to skip.
|
int |
getRows()
Number of elements to read.
|
Sort |
getSort()
Get
Sort. |
Query |
limit(int rows) |
Query |
orderBy(Sort sort)
Add given
Sort. |
void |
setOffset(int 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(int 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 getCritieria()
public int getOffset()
public int getRows()
public void setOffset(int 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(int offset)
offset - setOffset(int)public Query limit(int rows)
rows - setRows(int)Copyright © 2011-2016–2017 Aerospike Inc.. All rights reserved.