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 byCacheEntry
instances. This supplier will do the proper filtering by key based on the CacheEntry key.
-
-
Constructor Summary
Constructors Constructor Description EntryStreamSupplier(Cache<K,V> cache, ToIntFunction<Object> toIntFunction, Supplier<Stream<CacheEntry<K,V>>> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<CacheEntry<K,V>>
buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
-
-
-
Constructor Detail
-
EntryStreamSupplier
public EntryStreamSupplier(Cache<K,V> cache, ToIntFunction<Object> toIntFunction, Supplier<Stream<CacheEntry<K,V>>> supplier)
-
-
Method Detail
-
buildStream
public Stream<CacheEntry<K,V>> buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
- Specified by:
buildStream
in interfaceAbstractLocalCacheStream.StreamSupplier<K,V>
-
-