T - public class Query extends Object
| Constructor and Description |
|---|
Query(CriteriaDefinition criteria)
Creates new instance of
KeyValueQuery with given criteria. |
Query(org.springframework.data.domain.Sort sort)
Creates new instance of
Query with given 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.
|
org.springframework.data.domain.Sort |
getSort()
Get
Sort. |
Query |
limit(int rows) |
Query |
orderBy(org.springframework.data.domain.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(org.springframework.data.domain.Sort sort)
Set
Sort to be applied. |
Query |
skip(int offset) |
Query |
with(org.springframework.data.domain.Sort sort) |
public Query(CriteriaDefinition criteria)
KeyValueQuery with given criteria.criteria - can be null.public Query(org.springframework.data.domain.Sort sort)
Query with given Sort.sort - can be null.public CriteriaDefinition getCritieria()
public org.springframework.data.domain.Sort getSort()
Sort.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 void setSort(org.springframework.data.domain.Sort sort)
Sort to be applied.sort - public Query orderBy(org.springframework.data.domain.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)public Query with(org.springframework.data.domain.Sort sort)
sort - Copyright © 2011–2018 Aerospike Inc.. All rights reserved.