public abstract class AbstractLocalCacheStream<T,S extends BaseStream<T,S>,S2 extends S> extends Object implements BaseStream<T,S>
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractLocalCacheStream.StreamSupplier<T,S extends BaseStream<T,S>> |
Modifier and Type | Field and Description |
---|---|
protected Queue<IntermediateOperation> |
intermediateOperations |
protected Set<?> |
keysToFilter |
protected Collection<Runnable> |
onCloseRunnables |
protected boolean |
parallel |
protected ComponentRegistry |
registry |
protected IntSet |
segmentsToFilter |
protected AbstractLocalCacheStream.StreamSupplier<T,S> |
streamSupplier |
Constructor and Description |
---|
AbstractLocalCacheStream(AbstractLocalCacheStream.StreamSupplier<T,S> streamSupplier,
boolean parallel,
ComponentRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected S |
createStream() |
boolean |
isParallel() |
S2 |
onClose(Runnable closeHandler) |
S2 |
parallel() |
S2 |
sequential() |
S2 |
unordered() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator, spliterator
protected final AbstractLocalCacheStream.StreamSupplier<T,S extends BaseStream<T,S>> streamSupplier
protected final ComponentRegistry registry
protected final Collection<Runnable> onCloseRunnables
protected final Queue<IntermediateOperation> intermediateOperations
protected IntSet segmentsToFilter
protected Set<?> keysToFilter
protected boolean parallel
public AbstractLocalCacheStream(AbstractLocalCacheStream.StreamSupplier<T,S> streamSupplier, boolean parallel, ComponentRegistry registry)
streamSupplier
- parallel
- registry
- protected final S createStream()
public boolean isParallel()
isParallel
in interface BaseStream<T,S extends BaseStream<T,S>>
public S2 sequential()
sequential
in interface BaseStream<T,S extends BaseStream<T,S>>
public S2 parallel()
parallel
in interface BaseStream<T,S extends BaseStream<T,S>>
public S2 unordered()
unordered
in interface BaseStream<T,S extends BaseStream<T,S>>
public S2 onClose(Runnable closeHandler)
onClose
in interface BaseStream<T,S extends BaseStream<T,S>>
public void close()
close
in interface AutoCloseable
close
in interface BaseStream<T,S extends BaseStream<T,S>>
Copyright © 2021 JBoss by Red Hat. All rights reserved.