public abstract class PipelineBlock<I,O> extends Object
| Modifier and Type | Method and Description |
|---|---|
abstract void |
accept(I inputPortion,
boolean isLastPortion)
Accepts a portion of input.
|
<N> PipelineBlock<O,N> |
append(PipelineBlock<O,N> next)
Sets the next block in this block and returns the next block.
|
public <N> PipelineBlock<O,N> append(PipelineBlock<O,N> next)
Below is an example of using this method to set up a pipeline:
block1.append(block2).append(block3); .
Block2 here becomes the next for block1, and block3 is the next one for the block2.
next - The next block for the current block.next argument).public abstract void accept(I inputPortion, boolean isLastPortion) throws IgniteCheckedException
isLastPortion parameter should be set if this is a last portion
of the input. The method must not be called after the end of input: the call with isLastPortion == true
is the last one.inputPortion - Portion of input.isLastPortion - Is this the last portion.IgniteCheckedException - On error.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021