Top Description Constructors Methods
com.univocity.parsers.common.processor

public Class ObjectColumnProcessor

extends AbstractObjectColumnProcessor<ParsingContext>
implements RowProcessor
Class Inheritance
All Implemented Interfaces
com.univocity.parsers.common.processor.RowProcessor, com.univocity.parsers.common.processor.core.Processor
Imports
com.univocity.parsers.common.*, com.univocity.parsers.common.processor.core.*, com.univocity.parsers.conversions.*

A RowProcessor implementation for converting rows extracted from any implementation of AbstractParser 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 getColumnValuesAsList(), getColumnValuesAsMapOfIndexes() and getColumnValuesAsMapOfNames().

Note

Storing the values of all columns may be memory intensive. For large inputs, use a BatchedObjectColumnProcessor instead

Author
Univocity Software Pty Ltd - [email protected]
See Also
AbstractParser, RowProcessor, ColumnProcessor, Conversion

Constructor Summary

AccessConstructor and Description
public
ObjectColumnProcessor()

Constructs a column processor, pre-allocating room for 1000 rows.

public
ObjectColumnProcessor(int
the expected number of rows to be processed
expectedRowCount
)

Constructs a column processor pre-allocating room for the expected number of rows to be processed

Method Summary

Inherited from com.univocity.parsers.common.processor.core.AbstractObjectColumnProcessor:
getColumngetColumngetColumngetColumngetColumnValuesAsListgetColumnValuesAsMapOfIndexesgetColumnValuesAsMapOfNamesgetHeadersprocessStartedputColumnValuesInMapOfIndexesputColumnValuesInMapOfNamesrowProcessed

Constructor Detail

ObjectColumnProcessorback to summary
public ObjectColumnProcessor()

Constructs a column processor, pre-allocating room for 1000 rows.

ObjectColumnProcessorback to summary
public ObjectColumnProcessor(int expectedRowCount)

Constructs a column processor pre-allocating room for the expected number of rows to be processed

Parameters
expectedRowCount:int

the expected number of rows to be processed