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 |
getCritieria()
Get the criteria object.
|
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.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 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-2015–2016 Pivotal Software, Inc.. All rights reserved.