Class BulkLoadCsvParser


  • public class BulkLoadCsvParser
    extends BulkLoadParser
    CSV parser for COPY command.
    • Constructor Detail

      • BulkLoadCsvParser

        public BulkLoadCsvParser​(BulkLoadCsvFormat format)
        Creates bulk load CSV parser.
        Parameters:
        format - Format options (parsed from COPY command).
    • Method Detail

      • parseBatch

        protected Iterable<List<Object>> parseBatch​(byte[] batchData,
                                                    boolean isLastBatch)
                                             throws IgniteCheckedException
        Parses a batch of input data and returns a list of records parsed (in most cases this is a list of strings).

        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.

        Specified by:
        parseBatch in class BulkLoadParser
        Parameters:
        batchData - Data from the current batch.
        isLastBatch - true if this is the last batch.
        Returns:
        The list of records.
        Throws:
        IgniteCheckedException - If any processing error occurs.