org.springframework.data.elasticsearch.core.query
Class StringQuery
java.lang.Object
org.springframework.data.elasticsearch.core.query.StringQuery
- All Implemented Interfaces:
- Query
public class StringQuery
- extends Object
Field Summary |
protected org.springframework.data.domain.Pageable |
pageable
|
protected org.springframework.data.domain.Sort |
sort
|
Method Summary |
|
addSort(org.springframework.data.domain.Sort sort)
Add Sort to query |
org.springframework.data.domain.Pageable |
getPageable()
Get page settings if defined |
org.springframework.data.domain.Sort |
getSort()
|
String |
getSource()
|
|
setPageable(org.springframework.data.domain.Pageable pageable)
restrict result to entries on given page. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pageable
protected org.springframework.data.domain.Pageable pageable
sort
protected org.springframework.data.domain.Sort sort
StringQuery
public StringQuery(String source)
StringQuery
public StringQuery(String source,
org.springframework.data.domain.Pageable pageable)
StringQuery
public StringQuery(String source,
org.springframework.data.domain.Pageable pageable,
org.springframework.data.domain.Sort sort)
getSource
public String getSource()
getSort
public org.springframework.data.domain.Sort getSort()
- Specified by:
getSort
in interface Query
- Returns:
- null if not set
getPageable
public org.springframework.data.domain.Pageable getPageable()
- Description copied from interface:
Query
- Get page settings if defined
- Specified by:
getPageable
in interface Query
- Returns:
setPageable
public final <T extends Query> T setPageable(org.springframework.data.domain.Pageable pageable)
- Description copied from interface:
Query
- restrict result to entries on given page. Corresponds to the 'start' and 'rows' parameter in elasticsearch
- Specified by:
setPageable
in interface Query
- Returns:
addSort
public final <T extends Query> T addSort(org.springframework.data.domain.Sort sort)
- Description copied from interface:
Query
- Add
Sort
to query
- Specified by:
addSort
in interface Query
- Returns:
Copyright © 2013 BioMed Central. All Rights Reserved.