public abstract class BulkLoadParser extends Object
The parser processes a batch of input data and return a list of records.
The parser uses corresponding options from BulkLoadFormat subclass.
| Constructor and Description |
|---|
BulkLoadParser() |
| Modifier and Type | Method and Description |
|---|---|
static BulkLoadParser |
createParser(BulkLoadFormat format)
Creates a parser for a given format options.
|
protected abstract Iterable<List<Object>> |
parseBatch(byte[] batchData,
boolean isLastBatch)
Parses a batch of input data and returns a list of records parsed
(in most cases this is a list of strings).
|
protected abstract Iterable<List<Object>> parseBatch(byte[] batchData, boolean isLastBatch) throws IgniteCheckedException
Note that conversion between parsed and database table type is done by the other
object (see BulkLoadProcessor.dataConverter) by the request processing code.
This method is not obliged to do this conversion.
batchData - Data from the current batch.isLastBatch - true if this is the last batch.IgniteCheckedException - If any processing error occurs.public static BulkLoadParser createParser(BulkLoadFormat format)
format - The input format object.IllegalArgumentException - if the format is not known to the factory.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018