public class ObjectColumnProcessor extends com.univocity.parsers.common.processor.core.AbstractObjectColumnProcessor<HtmlParsingContext> implements RowProcessor
A RowProcessor implementation for converting rows extracted by the HtmlParser into columns of objects. This uses the value conversions provided by Conversion instances.
For each row processed, a sequence of conversions will be executed to generate the appropriate object. Each resulting object will then be stored in a list that contains the values of the corresponding column.
At the end of the process, the user can access the lists with values parsed for all columns using the methods AbstractObjectColumnProcessor.getColumnValuesAsList(), AbstractObjectColumnProcessor.getColumnValuesAsMapOfIndexes() and AbstractObjectColumnProcessor.getColumnValuesAsMapOfNames().
Note: Storing the values of all columns may be memory intensive. For large inputs, use a BatchedObjectColumnProcessor instead
HtmlParser,
RowProcessor,
ColumnProcessor,
Conversion,
HtmlEntitySettings| Constructor and Description |
|---|
ObjectColumnProcessor()
Constructs a column processor, pre-allocating room for 1000 rows.
|
ObjectColumnProcessor(int expectedRowCount)
Constructs a column processor pre-allocating room for the expected number of rows to be processed
|
getColumn, getColumn, getColumn, getColumn, getColumnValuesAsList, getColumnValuesAsMapOfIndexes, getColumnValuesAsMapOfNames, getHeaders, processStarted, putColumnValuesInMapOfIndexes, putColumnValuesInMapOfNames, rowProcessedprocessEnded, rowProcessedapplyConversions, convertAll, convertFields, convertIndexes, convertType, handleConversionError, initializeConversions, reverseConversions, toDataProcessingExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEnded, processStarted, rowProcessedpublic ObjectColumnProcessor()
Constructs a column processor, pre-allocating room for 1000 rows.
public ObjectColumnProcessor(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.