Package org.infinispan.stream.impl.local
Class SegmentedKeyStreamSupplier<K,V>
- java.lang.Object
-
- org.infinispan.stream.impl.local.SegmentedKeyStreamSupplier<K,V>
-
- All Implemented Interfaces:
AbstractLocalCacheStream.StreamSupplier<K,Stream<K>>
public class SegmentedKeyStreamSupplier<K,V> extends Object implements AbstractLocalCacheStream.StreamSupplier<K,Stream<K>>
StreamSupplier that allows for creating streams where they utilize aInternalDataContainer
so that the stream only looks at keys in those given segments.- Since:
- 9.3
- Author:
- wburns
-
-
Constructor Summary
Constructors Constructor Description SegmentedKeyStreamSupplier(Cache<K,V> cache, ToIntFunction<Object> toIntFunction, InternalDataContainer<K,V> internalDataContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<K>
buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
-
-
-
Constructor Detail
-
SegmentedKeyStreamSupplier
public SegmentedKeyStreamSupplier(Cache<K,V> cache, ToIntFunction<Object> toIntFunction, InternalDataContainer<K,V> internalDataContainer)
-
-
Method Detail
-
buildStream
public Stream<K> buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
- Specified by:
buildStream
in interfaceAbstractLocalCacheStream.StreamSupplier<K,V>
-
-