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.| Modifier and Type | Field and Description |
|---|---|
static String[] |
EMPTY_STR_ARRAY
Empty string array.
|
| Constructor and Description |
|---|
CsvLineProcessorBlock(BulkLoadCsvFormat format)
Creates a CSV line parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String input,
boolean isLastPortion)
Accepts a portion of input.
|
appendpublic static final String[] EMPTY_STR_ARRAY
public CsvLineProcessorBlock(BulkLoadCsvFormat format)
public 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 Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023