public class PagedSelectResults<T> extends AbstractSelectResults<T>
SelectResults implementation with support for Paging.SelectResults,
Pageable,
AbstractSelectResults,
PagingUtils,
Lazy| Modifier and Type | Field and Description |
|---|---|
protected static String |
NON_NULL_PAGEABLE_MESSAGE |
| Constructor and Description |
|---|
PagedSelectResults(org.apache.geode.cache.query.SelectResults<T> selectResults,
org.springframework.data.domain.Pageable pageable)
Constructs a new instance of
PagedSelectResults initialized with the given, required
SelectResults and Pageable object encapsulating the details of the requested page. |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
asList() |
Set<T> |
asSet() |
protected org.springframework.data.domain.Pageable |
getPageRequest()
Returns the
Pageable object encapsulating the details of the requested page. |
Iterator<T> |
iterator() |
int |
size() |
PagedSelectResults<T> |
with(org.springframework.data.domain.Pageable pageRequest)
Builder method used to allow a new
page request in order to get a different page of results
from the underlying SelectResults. |
add, addAll, clear, contains, containsAll, getCollectionType, getSelectResults, isEmpty, isModifiable, occurrences, remove, removeAll, retainAll, setElementType, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streamprotected static final String NON_NULL_PAGEABLE_MESSAGE
public PagedSelectResults(@NonNull org.apache.geode.cache.query.SelectResults<T> selectResults, @NonNull org.springframework.data.domain.Pageable pageable)
PagedSelectResults initialized with the given, required
SelectResults and Pageable object encapsulating the details of the requested page.selectResults - SelectResults to wrap; must not be null.pageable - Pageable object encapsulating the details of the requested page;
must not be null.IllegalArgumentException - if the SelectResults or the Pageable object is null.SelectResults,
Pageable@NonNull protected org.springframework.data.domain.Pageable getPageRequest()
Pageable object encapsulating the details of the requested page.Pageable object encapsulating the details of the requested page.Pageablepublic Set<T> asSet()
asSet in interface org.apache.geode.cache.query.SelectResults<T>asSet in class AbstractSelectResults<T>public List<T> asList()
asList in interface org.apache.geode.cache.query.SelectResults<T>asList in class AbstractSelectResults<T>public Iterator<T> iterator()
iterator in interface Iterable<T>iterator in interface Collection<T>iterator in class AbstractSelectResults<T>public int size()
size in interface Collection<T>size in class AbstractSelectResults<T>public PagedSelectResults<T> with(@NonNull org.springframework.data.domain.Pageable pageRequest)
page request in order to get a different page of results
from the underlying SelectResults.pageRequest - Pageable object encapsulating the details of the requested page;
must not be null.PagedSelectResults.IllegalArgumentException - if Pageable is null.PageableCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.