public class EntryStreamSupplier<K,V> extends Object implements AbstractLocalCacheStream.StreamSupplier<CacheEntry<K,V>,Stream<CacheEntry<K,V>>>
CacheEntry
instances. This
supplier will do the proper filtering by key based on the CacheEntry key.Constructor and Description |
---|
EntryStreamSupplier(Cache<K,V> cache,
ToIntFunction<Object> toIntFunction,
Supplier<Stream<CacheEntry<K,V>>> supplier) |
Modifier and Type | Method and Description |
---|---|
Stream<CacheEntry<K,V>> |
buildStream(IntSet segmentsToFilter,
Set<?> keysToFilter,
boolean parallel) |
public EntryStreamSupplier(Cache<K,V> cache, ToIntFunction<Object> toIntFunction, Supplier<Stream<CacheEntry<K,V>>> supplier)
public Stream<CacheEntry<K,V>> buildStream(IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
buildStream
in interface AbstractLocalCacheStream.StreamSupplier<CacheEntry<K,V>,Stream<CacheEntry<K,V>>>
Copyright © 2021 JBoss by Red Hat. All rights reserved.