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.
|
long |
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(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. |
KeyValueQuery<T> |
skip(long offset) |
public KeyValueQuery()
KeyValueQuery.public KeyValueQuery(@Nullable T criteria)
KeyValueQuery with given criteria.criteria - can be null.public KeyValueQuery(Sort sort)
KeyValueQuery with given Sort.sort - must not be null.public long getOffset()
public int getRows()
public void setOffset(long 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 - must not be null.public KeyValueQuery<T> skip(long offset)
offset - setOffset(long)public KeyValueQuery<T> limit(int rows)
rows - setRows(int)Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.