Class CacheSetMapper<E,R>
java.lang.Object
java.util.AbstractCollection<R>
org.infinispan.commons.util.CollectionMapper<E,R>
org.infinispan.commons.util.SetMapper<E,R>
org.infinispan.util.CacheSetMapper<E,R>
- All Implemented Interfaces:
Iterable<R>, Collection<R>, Set<R>, CacheCollection<R>, CacheSet<R>, org.infinispan.commons.util.CloseableIteratorCollection<R>, org.infinispan.commons.util.CloseableIteratorSet<R>
@Deprecated
public class CacheSetMapper<E,R>
extends org.infinispan.commons.util.SetMapper<E,R>
implements CacheSet<R>
Deprecated.
since 16.1 This class is not used any longer and is scheduled for removal
A
CacheSet that allows for a different set to be mapped as a different instance wtih values replaced on
request. This is useful as a cache set is normally lazily evaluated to prevent having to pull all values into memory
which can be a lot faster when checking single values and can also prevent out of memory issues.- Since:
- 9.0
- Author:
- wburns
-
Field Summary
FieldsFields inherited from class org.infinispan.commons.util.CollectionMapper
mapper, realCollection -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.infinispan.commons.util.CollectionMapper
add, addAll, clear, forEach, isEmpty, remove, removeAll, retainAll, sizeMethods inherited from class AbstractCollection
contains, containsAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CacheCollection
localPublisher, localPublisherMethods inherited from interface Collection
removeIf, toArray
-
Field Details
-
realSet
-
-
Constructor Details
-
CacheSetMapper
-
CacheSetMapper
-
-
Method Details
-
stream
Deprecated.- Specified by:
streamin interfaceCacheCollection<E>- Specified by:
streamin interfaceorg.infinispan.commons.util.CloseableIteratorCollection<E>- Specified by:
streamin interfaceCollection<E>- Overrides:
streamin classorg.infinispan.commons.util.CollectionMapper<E,R>
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceCacheCollection<E>- Specified by:
parallelStreamin interfaceorg.infinispan.commons.util.CloseableIteratorCollection<E>- Specified by:
parallelStreamin interfaceCollection<E>- Overrides:
parallelStreamin classorg.infinispan.commons.util.CollectionMapper<E,R>
-
spliterator
Deprecated.- Specified by:
spliteratorin interfaceorg.infinispan.commons.util.CloseableIteratorCollection<E>- Specified by:
spliteratorin interfaceorg.infinispan.commons.util.CloseableIteratorSet<E>- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>- Specified by:
spliteratorin interfaceSet<E>- Overrides:
spliteratorin classorg.infinispan.commons.util.CollectionMapper<E,R>
-
iterator
Deprecated.- Specified by:
iteratorin interfaceorg.infinispan.commons.util.CloseableIteratorCollection<E>- Specified by:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin interfaceSet<E>- Overrides:
iteratorin classorg.infinispan.commons.util.CollectionMapper<E,R>
-