How can i use column mapping by using BatchedColumnProcessor in univocity?
CsvParserSettings settings = new CsvParserSettings();
settings.setProcessor(new BatchedColumnProcessor(5) {
@Override
public void batchProcessed(int rowsInThisBatch) {}
});
CsvParser parser = new CsvParser(settings);
like we use in BeanListProcessor and add custom column mapping
BeanListProcessor<Product> rowProcessor = new BeanListProcessor<Product>(Product.class);
rowProcessor.setColumnMapping();
setColumnMappingis only mentioned once inunivocity/univocity-parsersissue 287, and illustrated in this answer, applied to aColumnPositionMappingStrategywith opencsv.That issue mentions "initial code to support github issue #287 - map column name to attribute", with an example at
Github_287.javaSo from 2.8.0: