Package org.infinispan.stream.impl.local
Class EntryStreamSupplier<K,V>
java.lang.Object
org.infinispan.stream.impl.local.EntryStreamSupplier<K,V>
- All Implemented Interfaces:
AbstractLocalCacheStream.StreamSupplier<CacheEntry<K,V>, Stream<CacheEntry<K, V>>>
public class EntryStreamSupplier<K,V>
extends Object
implements AbstractLocalCacheStream.StreamSupplier<CacheEntry<K,V>,Stream<CacheEntry<K,V>>>
Stream supplier that is to be used when the underlying stream is composed by
CacheEntry instances. This
supplier will do the proper filtering by key based on the CacheEntry key.-
Constructor Summary
ConstructorsConstructorDescriptionEntryStreamSupplier(Cache<K, V> cache, ToIntFunction<Object> toIntFunction, Supplier<Stream<CacheEntry<K, V>>> supplier) -
Method Summary
Modifier and TypeMethodDescriptionStream<CacheEntry<K, V>> buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
-
Constructor Details
-
EntryStreamSupplier
public EntryStreamSupplier(Cache<K, V> cache, ToIntFunction<Object> toIntFunction, Supplier<Stream<CacheEntry<K, V>>> supplier)
-
-
Method Details
-
buildStream
public Stream<CacheEntry<K,V>> buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel) - Specified by:
buildStreamin interfaceAbstractLocalCacheStream.StreamSupplier<K,V>
-