TerminalOp has an input type and stream
shape, and a result type. A TerminalOp also has a set of
operation flags that describes how the operation processes elements
of the stream (such as short-circuiting or respecting encounter order; see
StreamOpFlag).
A TerminalOp must provide a sequential and parallel implementation
of the operation relative to a given stream source and set of intermediate
operations.
| Modifier and Type | Method and Description |
|---|---|
| public default <P_IN> R | Returns: the result of the evaluationthe pipeline helper helper, Spliterator<P_IN> the source spliterator spliterator)Performs a parallel evaluation of the operation using the specified
|
| public <P_IN> R | Returns: the result of the evaluationthe pipeline helper helper, Spliterator<P_IN> the source spliterator spliterator)Performs a sequential evaluation of the operation using the specified
|
| public default int | |
| public default StreamShape | Returns: StreamShape of the input type of this operationGets the shape of the input type of this operation. |
| evaluateParallel | back to summary |
|---|---|
| public default <P_IN> R evaluateParallel(PipelineHelper<E_IN> helper, Spliterator<P_IN> spliterator) Performs a parallel evaluation of the operation using the specified
Implementation Specification The default performs a sequential evaluation of the operation
using the specified
| |
| evaluateSequential | back to summary |
|---|---|
| public <P_IN> R evaluateSequential(PipelineHelper<E_IN> helper, Spliterator<P_IN> spliterator) Performs a sequential evaluation of the operation using the specified
| |
| getOpFlags | back to summary |
|---|---|
| public default int getOpFlags() Gets the stream flags of the operation. Terminal operations may set a
limited subset of the stream flags defined in Implementation Specification The default implementation returns zero.
| |
| inputShape | back to summary |
|---|---|
| public default StreamShape inputShape() Gets the shape of the input type of this operation. Implementation Specification The default returns
| |