T - public class Query<T> extends Object
| Constructor and Description |
|---|
Query()
Creates new instance of
KeyValueQuery. |
Query(CriteriaDefinition criteria)
Creates new instance of
KeyValueQuery with given criteria. |
Query(Sort sort)
|
| Modifier and Type | Method and Description |
|---|---|
Query<?> |
addCriteria(CriteriaDefinition criteriaDefinition)
Adds the given
CriteriaDefinition to the current Query. |
T |
getCritieria()
Get the criteria object.
|
int |
getOffset()
Number of elements to skip.
|
List<com.aerospike.helper.query.Qualifier> |
getQueryObject() |
int |
getRows()
Number of elements to read.
|
Sort |
getSort()
Get
Sort. |
Query<T> |
limit(int rows) |
Query<T> |
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<T> |
skip(int offset) |
Query<?> |
with(Sort sort) |
public Query()
KeyValueQuery.public Query(CriteriaDefinition criteria)
KeyValueQuery with given criteria.criteria - can be null.public Query(Sort sort)
sort - can be null.public Query<?> addCriteria(CriteriaDefinition criteriaDefinition)
CriteriaDefinition to the current Query.criteriaDefinition - must not be null.public T 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<T> orderBy(Sort sort)
Sort.sort - null Sort will be ignored.public Query<T> skip(int offset)
offset - setOffset(int)public Query<T> limit(int rows)
rows - setRows(int)public List<com.aerospike.helper.query.Qualifier> getQueryObject()
Copyright © 2011-2015–2017 Aerospike Inc.. All rights reserved.