public class ColumnProcessor extends com.univocity.parsers.common.processor.core.AbstractColumnProcessor<HtmlParsingContext> implements RowProcessor
A simple 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
HtmlParser,
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, rowProcessedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEnded, processStarted, rowProcessedpublic ColumnProcessor()
Constructs a column processor, pre-allocating room for 1000 rows.
public ColumnProcessor(int expectedRowCount)
Constructs a column processor pre-allocating room for the expected number of rows to be processed
expectedRowCount - the expected number of rows to be processedCopyright © 2018 uniVocity Software Pty Ltd. All rights reserved.