Package org.infinispan.stream.impl.local
Class AbstractLocalCacheStream<T,S extends BaseStream<T,S>,S2 extends S>
java.lang.Object
org.infinispan.stream.impl.local.AbstractLocalCacheStream<T,S,S2>
- All Implemented Interfaces:
AutoCloseable,BaseStream<T,S>
- Direct Known Subclasses:
LocalCacheStream,LocalDoubleCacheStream,LocalIntCacheStream,LocalLongCacheStream
public abstract class AbstractLocalCacheStream<T,S extends BaseStream<T,S>,S2 extends S>
extends Object
implements BaseStream<T,S>
Implements the base operations required for a local stream.
stream is populated
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAbstractLocalCacheStream.StreamSupplier<T,S extends BaseStream<T, S>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Queue<IntermediateOperation> protected Set<?> protected final Collection<Runnable> protected booleanprotected final ComponentRegistryprotected org.infinispan.commons.util.IntSetprotected final AbstractLocalCacheStream.StreamSupplier<T, S> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLocalCacheStream(AbstractLocalCacheStream.StreamSupplier<T, S> streamSupplier, boolean parallel, ComponentRegistry registry) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.stream.BaseStream
iterator, spliterator
-
Field Details
-
streamSupplier
-
registry
-
onCloseRunnables
-
intermediateOperations
-
segmentsToFilter
protected org.infinispan.commons.util.IntSet segmentsToFilter -
keysToFilter
-
parallel
protected boolean parallel
-
-
Constructor Details
-
AbstractLocalCacheStream
public AbstractLocalCacheStream(AbstractLocalCacheStream.StreamSupplier<T, S> streamSupplier, boolean parallel, ComponentRegistry registry) - Parameters:
streamSupplier-parallel-registry-
-
-
Method Details
-
createStream
-
isParallel
public boolean isParallel()- Specified by:
isParallelin interfaceBaseStream<T,S extends BaseStream<T, S>>
-
sequential
- Specified by:
sequentialin interfaceBaseStream<T,S extends BaseStream<T, S>>
-
parallel
- Specified by:
parallelin interfaceBaseStream<T,S extends BaseStream<T, S>>
-
unordered
- Specified by:
unorderedin interfaceBaseStream<T,S extends BaseStream<T, S>>
-
onClose
- Specified by:
onClosein interfaceBaseStream<T,S extends BaseStream<T, S>>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBaseStream<T,S extends BaseStream<T, S>>
-