A PipelineHelper describes the initial segment of a stream pipeline,
including its source, intermediate operations, and may additionally
incorporate information about the terminal (or stateful) operation which
follows the last intermediate operation described by this
PipelineHelper. The PipelineHelper is passed to the
TerminalOp#evaluateParallel(PipelineHelper, java.,
TerminalOp#evaluateSequential(PipelineHelper, java.,
and AbstractPipeline#opEvaluateParallel(PipelineHelper, java., methods, which can use the
PipelineHelper to access information about the pipeline such as
head shape, stream flags, and size, and use the helper methods
such as wrapAndCopyInto(Sink, Spliterator),
copyInto(Sink, Spliterator), and wrapSink(Sink) to execute
pipeline operations.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract <P_IN> void | copyInto(Sink<P_IN>
the destination wrappedSink, Spliterator<P_IN> Sinkthe source spliterator)SpliteratorPushes elements obtained from the |
| pack-priv abstract <P_IN> boolean | Returns: true if the cancellation was requestedthe destination wrappedSink, Spliterator<P_IN> Sinkthe source spliterator)SpliteratorPushes elements obtained from the |
| pack-priv abstract <P_IN> Node | Returns: theNode containing all output elementsthe source spliterator, boolean Spliteratorif true and the pipeline is a parallel pipeline then the
flatten, IntFunction<P_OUT[]> Node returned will contain no children, otherwise the
Node may represent the root in a tree that reflects the
shape of the computation tree.a factory function for array instances generator)Collects all output elements resulting from applying the pipeline stages
to the source |
| pack-priv abstract <P_IN> long | Returns: the exact size if known, or -1 if infinite or unknownthe spliterator describing the relevant portion of the
source data spliterator)Returns the exact output size of the portion of the output resulting from
applying the pipeline stages described by this |
| pack-priv abstract StreamShape | Returns: the stream shape for the source of the pipeline segment.Gets the stream shape for the source of the pipeline segment. |
| pack-priv abstract int | Returns: the combined stream and operation flagsGets the combined stream and operation flags for the output of the described pipeline. |
| pack-priv abstract Node. | Returns: aNode.Builder compatible with the output shape of this
PipelineHelperif >=0 then a builder will be created that has a
fixed capacity of exactly sizeIfKnown elements; if < 0 then the
builder has variable capacity. A fixed capacity builder will fail
if an element is added after the builder has reached capacity. exactSizeIfKnown, IntFunction<P_OUT[]> a factory function for array instances generator)Constructs a |
| pack-priv abstract <P_IN, S extends Sink | wrapAndCopyInto(S
the sink, Spliterator<P_IN> Sink to receive the resultsthe spliterator describing the source input to process spliterator)Applies the pipeline stages described by this |
| pack-priv abstract <P_IN> Sink | Returns: aSink that implements the pipeline stages and sends
results to the provided Sinkthe sink)Sink to receive the resultsTakes a |
| pack-priv abstract <P_IN> Spliterator |
| PipelineHelper | back to summary |
|---|---|
| pack-priv PipelineHelper() | |
| copyInto | back to summary |
|---|---|
| pack-priv abstract <P_IN> void copyInto(Sink<P_IN> wrappedSink, Spliterator<P_IN> spliterator) Pushes elements obtained from the Implementation Specification This method conforms to the
| |
| copyIntoWithCancel | back to summary |
|---|---|
| pack-priv abstract <P_IN> boolean copyIntoWithCancel(Sink<P_IN> wrappedSink, Spliterator<P_IN> spliterator) Pushes elements obtained from the Implementation Specification This method conforms to the
| |
| evaluate | back to summary |
|---|---|
| pack-priv abstract <P_IN> Node Collects all output elements resulting from applying the pipeline stages
to the source Implementation Note If the pipeline has no intermediate operations and the source is backed
by a
| |
| exactOutputSizeIfKnown | back to summary |
|---|---|
| pack-priv abstract <P_IN> long exactOutputSizeIfKnown(Spliterator<P_IN> spliterator) Returns the exact output size of the portion of the output resulting from
applying the pipeline stages described by this API Note The exact output size is known if the
| |
| getSourceShape | back to summary |
|---|---|
| pack-priv abstract StreamShape getSourceShape() Gets the stream shape for the source of the pipeline segment.
| |
| getStreamAndOpFlags | back to summary |
|---|---|
| pack-priv abstract int getStreamAndOpFlags() Gets the combined stream and operation flags for the output of the described pipeline. This will incorporate stream flags from the stream source, all the intermediate operations and the terminal operation.
| |
| makeNodeBuilder | back to summary |
|---|---|
| pack-priv abstract Node. Constructs a
| |
| wrapAndCopyInto | back to summary |
|---|---|
| pack-priv abstract <P_IN, S extends Sink Applies the pipeline stages described by this Implementation Specification The implementation behaves as if:
| |
| wrapSink | back to summary |
|---|---|
| pack-priv abstract <P_IN> Sink Takes a | |
| wrapSpliterator | back to summary |
|---|---|
| pack-priv abstract <P_IN> Spliterator | |