Class PagedSelectResults<T>
java.lang.Object
org.springframework.data.gemfire.repository.query.AbstractSelectResults<T>
org.springframework.data.gemfire.repository.query.PagedSelectResults<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,SelectResults<T>
An Apache Geode
SelectResults
implementation with support for Paging.- Since:
- 2.4.0
- Author:
- John Blum
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPagedSelectResults
(SelectResults<T> selectResults, Pageable pageable) Constructs a new instance ofPagedSelectResults
initialized with the given, requiredSelectResults
andPageable
object encapsulating the details of the requested page. -
Method Summary
Modifier and TypeMethodDescriptionasList()
asSet()
protected Pageable
Returns thePageable
object encapsulating the details of the requested page.iterator()
int
size()
Builder method used to allow a newpage request
in order to get a different page of results from the underlyingSelectResults
.Methods inherited from class org.springframework.data.gemfire.repository.query.AbstractSelectResults
add, addAll, clear, contains, containsAll, getCollectionType, getSelectResults, isEmpty, isModifiable, occurrences, remove, removeAll, retainAll, setElementType, toArray, toArray
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
NON_NULL_PAGEABLE_MESSAGE
- See Also:
-
-
Constructor Details
-
PagedSelectResults
Constructs a new instance ofPagedSelectResults
initialized with the given, requiredSelectResults
andPageable
object encapsulating the details of the requested page.- Parameters:
selectResults
-SelectResults
to wrap; must not be null.pageable
-Pageable
object encapsulating the details of the requested page; must not be null.- Throws:
IllegalArgumentException
- if theSelectResults
or thePageable
object is null.- See Also:
-
-
Method Details
-
getPageRequest
Returns thePageable
object encapsulating the details of the requested page. -
asSet
- Specified by:
asSet
in interfaceSelectResults<T>
- Overrides:
asSet
in classAbstractSelectResults<T>
-
asList
- Specified by:
asList
in interfaceSelectResults<T>
- Overrides:
asList
in classAbstractSelectResults<T>
-
iterator
- Specified by:
iterator
in interfaceCollection<T>
- Specified by:
iterator
in interfaceIterable<T>
- Overrides:
iterator
in classAbstractSelectResults<T>
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Overrides:
size
in classAbstractSelectResults<T>
-
with
Builder method used to allow a newpage request
in order to get a different page of results from the underlyingSelectResults
.- Parameters:
pageRequest
-Pageable
object encapsulating the details of the requested page; must not be null.- Returns:
- this
PagedSelectResults
. - Throws:
IllegalArgumentException
- ifPageable
is null.- See Also:
-