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,
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 Pageable |
getPageRequest()
Returns the
Pageable object encapsulating the details of the requested page. |
Iterator<T> |
iterator() |
int |
size() |
PagedSelectResults<T> |
with(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, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
protected static final String NON_NULL_PAGEABLE_MESSAGE
public PagedSelectResults(@NonNull org.apache.geode.cache.query.SelectResults<T> selectResults, @NonNull 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 Pageable getPageRequest()
Pageable
object encapsulating the details of the requested page.public 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 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.Pageable
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.