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:
-
Collection
SelectResults
-
Constructor Summary
ConstructorDescriptionAbstractSelectResults
(org.apache.geode.cache.query.SelectResults<T> selectResults) Constructs a new instance ofSelectResults
initialized with the given, requiredSelectResults
instance backing this base class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> results) asList()
asSet()
void
clear()
boolean
boolean
containsAll
(Collection<?> results) org.apache.geode.cache.query.types.CollectionType
protected org.apache.geode.cache.query.SelectResults<T>
Return the configured, underlyingSelectResults
used as the delegate backing thisSelectResults
implementation.boolean
isEmpty()
boolean
iterator()
int
occurrences
(T result) boolean
boolean
removeAll
(Collection<?> results) boolean
retainAll
(Collection<?> results) void
setElementType
(org.apache.geode.cache.query.types.ObjectType objectType) int
size()
Object[]
toArray()
<E> E[]
toArray
(E[] array) 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
-
Constructor Details
-
AbstractSelectResults
Constructs a new instance ofSelectResults
initialized with the given, requiredSelectResults
instance backing this base class.- Parameters:
selectResults
-SelectResults
delegate backing this implementation; must not be null.- Throws:
IllegalArgumentException
- ifSelectResults
is null.- See Also:
-
SelectResults
-
-
Method Details
-
getSelectResults
Return the configured, underlyingSelectResults
used as the delegate backing thisSelectResults
implementation.- Returns:
- the configured, underlying
SelectResults
. - See Also:
-
SelectResults
-
asList
- Specified by:
asList
in interfaceorg.apache.geode.cache.query.SelectResults<T>
-
asSet
- Specified by:
asSet
in interfaceorg.apache.geode.cache.query.SelectResults<T>
-
getCollectionType
public org.apache.geode.cache.query.types.CollectionType getCollectionType()- Specified by:
getCollectionType
in interfaceorg.apache.geode.cache.query.SelectResults<T>
-
isModifiable
public boolean isModifiable()- Specified by:
isModifiable
in interfaceorg.apache.geode.cache.query.SelectResults<T>
-
occurrences
- Specified by:
occurrences
in interfaceorg.apache.geode.cache.query.SelectResults<T>
-
setElementType
public void setElementType(org.apache.geode.cache.query.types.ObjectType objectType) - Specified by:
setElementType
in interfaceorg.apache.geode.cache.query.SelectResults<T>
-
add
- Specified by:
add
in interfaceCollection<T>
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
-
contains
- Specified by:
contains
in interfaceCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
-
iterator
-
remove
- Specified by:
remove
in interfaceCollection<T>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public <E> E[] toArray(E[] array) - Specified by:
toArray
in interfaceCollection<T>
-