public class CsvLineProcessorBlock extends PipelineBlock<String,String[]>
PipelineBlock, which splits line according to CSV format rules and unquotes fields.
The next block PipelineBlock.accept(Object, boolean) is called per-line.| Constructor and Description |
|---|
CsvLineProcessorBlock(Pattern fldDelim,
String quoteChars)
Creates a CSV line parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String input,
boolean isLastPortion)
Accepts a portion of input.
|
appendpublic void accept(String input, 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<String,String[]>input - Portion of input.isLastPortion - Is this the last portion.IgniteCheckedException - On error.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018