public class LineSplitterBlock extends PipelineBlock<char[],String>
PipelineBlock, which splits input stream of char[] into lines using the specified Pattern
as line separator. Next block PipelineBlock.accept(Object, boolean) is invoked for each line.
Leftover characters are remembered and used during processing the next input batch,
unless isLastPortion flag is specified.| Constructor and Description |
|---|
LineSplitterBlock(Pattern delim)
Creates line splitter block.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(char[] chars,
boolean isLastPortion)
Accepts a portion of input.
|
appendpublic LineSplitterBlock(Pattern delim)
delim - The line separator pattern.public void accept(char[] chars,
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.accept in class PipelineBlock<char[],String>chars - 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