public class SegmentedEntryStreamSupplier<K,V> extends Object implements AbstractLocalCacheStream.StreamSupplier<CacheEntry<K,V>,Stream<CacheEntry<K,V>>>
InternalDataContainer
so that
the stream only looks at entries in those given segments.Constructor and Description |
---|
SegmentedEntryStreamSupplier(Cache<K,V> cache,
ToIntFunction<Object> toIntFunction,
InternalDataContainer<K,V> internalDataContainer) |
Modifier and Type | Method and Description |
---|---|
Stream<CacheEntry<K,V>> |
buildStream(IntSet segmentsToFilter,
Set<?> keysToFilter,
boolean parallel) |
public SegmentedEntryStreamSupplier(Cache<K,V> cache, ToIntFunction<Object> toIntFunction, InternalDataContainer<K,V> internalDataContainer)
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.