Spring Data for VMware GemFire
Class AbstractSelectResults<T>
java.lang.Object
org.springframework.data.gemfire.repository.query.AbstractSelectResults<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,org.apache.geode.cache.query.SelectResults<T>
- Direct Known Subclasses:
PagedSelectResults
public class AbstractSelectResults<T>
extends Object
implements org.apache.geode.cache.query.SelectResults<T>
An abstract base class implementation of Apache Geode's
SelectResults interface and Java Collection
interface, which delegates to, and is backed by a given, required SelectResults instance.- Since:
- 2.4.0
- See Also:
-
CollectionSelectResults
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSelectResults(org.apache.geode.cache.query.SelectResults<T> selectResults) Constructs a new instance ofSelectResultsinitialized with the given, requiredSelectResultsinstance backing this base class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> results) asList()asSet()voidclear()booleanbooleancontainsAll(Collection<?> results) org.apache.geode.cache.query.types.CollectionTypeprotected org.apache.geode.cache.query.SelectResults<T>Return the configured, underlyingSelectResultsused as the delegate backing thisSelectResultsimplementation.booleanisEmpty()booleaniterator()intoccurrences(T result) booleanbooleanremoveAll(Collection<?> results) booleanretainAll(Collection<?> results) voidsetElementType(org.apache.geode.cache.query.types.ObjectType objectType) intsize()Object[]toArray()<E> E[]toArray(E[] array) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
AbstractSelectResults
Constructs a new instance ofSelectResultsinitialized with the given, requiredSelectResultsinstance backing this base class.- Parameters:
selectResults-SelectResultsdelegate backing this implementation; must not be null.- Throws:
IllegalArgumentException- ifSelectResultsis null.- See Also:
-
SelectResults
-
-
Method Details
-
getSelectResults
Return the configured, underlyingSelectResultsused as the delegate backing thisSelectResultsimplementation.- Returns:
- the configured, underlying
SelectResults. - See Also:
-
SelectResults
-
asList
- Specified by:
asListin interfaceorg.apache.geode.cache.query.SelectResults<T>
-
asSet
- Specified by:
asSetin interfaceorg.apache.geode.cache.query.SelectResults<T>
-
getCollectionType
public org.apache.geode.cache.query.types.CollectionType getCollectionType()- Specified by:
getCollectionTypein interfaceorg.apache.geode.cache.query.SelectResults<T>
-
isModifiable
public boolean isModifiable()- Specified by:
isModifiablein interfaceorg.apache.geode.cache.query.SelectResults<T>
-
occurrences
- Specified by:
occurrencesin interfaceorg.apache.geode.cache.query.SelectResults<T>
-
setElementType
public void setElementType(org.apache.geode.cache.query.types.ObjectType objectType) - Specified by:
setElementTypein interfaceorg.apache.geode.cache.query.SelectResults<T>
-
add
- Specified by:
addin interfaceCollection<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>
-
contains
- Specified by:
containsin interfaceCollection<T>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>
-
iterator
-
remove
- Specified by:
removein interfaceCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
public <E> E[] toArray(E[] array) - Specified by:
toArrayin interfaceCollection<T>
-