T - Criteria typepublic class KeyValueQuery<T> extends Object
| Constructor and Description |
|---|
KeyValueQuery()
Creates new instance of
KeyValueQuery. |
KeyValueQuery(Sort sort)
Creates new instance of
KeyValueQuery with given Sort. |
KeyValueQuery(T criteria)
Creates new instance of
KeyValueQuery with given criteria. |
| Modifier and Type | Method and Description |
|---|---|
T |
getCriteria()
Get the criteria object.
|
T |
getCritieria()
Deprecated.
will be removed in favor of
getCriteria(). |
int |
getOffset()
Number of elements to skip.
|
int |
getRows()
Number of elements to read.
|
Sort |
getSort()
Get
Sort. |
KeyValueQuery<T> |
limit(int rows) |
KeyValueQuery<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. |
KeyValueQuery<T> |
skip(int offset) |
public KeyValueQuery()
KeyValueQuery.public KeyValueQuery(T criteria)
KeyValueQuery with given criteria.criteria - can be null.public KeyValueQuery(Sort sort)
KeyValueQuery with given Sort.sort - can be null.@Deprecated public T getCritieria()
getCriteria().public T getCriteria()
public int getOffset()
public int getRows()
public void setOffset(int offset)
offset - use negative value for none.public void setRows(int rows)
rows - use negative value for all.public KeyValueQuery<T> orderBy(Sort sort)
Sort.sort - null Sort will be ignored.public KeyValueQuery<T> skip(int offset)
offset - setOffset(int)public KeyValueQuery<T> limit(int rows)
rows - setRows(int)Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.