public class ColumnProcessor extends AbstractColumnProcessor<ParsingContext> implements RowProcessor
RowProcessor
implementation that stores values of columns.
Values parsed in each row will be split into columns of Strings. Each column has its own list of values.
At the end of the process, the user can access the lists with values parsed for all columns using the methods AbstractColumnProcessor.getColumnValuesAsList()
,
AbstractColumnProcessor.getColumnValuesAsMapOfIndexes()
and AbstractColumnProcessor.getColumnValuesAsMapOfNames()
.
Note: Storing the values of all columns may be memory intensive. For large inputs, use a BatchedColumnProcessor
instead
AbstractParser
,
RowProcessor
Constructor and Description |
---|
ColumnProcessor()
Constructs a column processor, pre-allocating room for 1000 rows.
|
ColumnProcessor(int expectedRowCount)
Constructs a column processor pre-allocating room for the expected number of rows to be processed
|
getColumn, getColumn, getColumnValuesAsList, getColumnValuesAsMapOfIndexes, getColumnValuesAsMapOfNames, getHeaders, processEnded, processStarted, putColumnValuesInMapOfIndexes, putColumnValuesInMapOfNames, rowProcessed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processEnded, processStarted, rowProcessed
public ColumnProcessor()
public ColumnProcessor(int expectedRowCount)
expectedRowCount
- the expected number of rows to be processedCopyright © 2019 Univocity Software Pty Ltd. All rights reserved.