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

public Class ColumnProcessor

extends AbstractColumnProcessor<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.*

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 getColumnValuesAsList(), getColumnValuesAsMapOfIndexes() and getColumnValuesAsMapOfNames().

Note

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

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

Constructor Summary

AccessConstructor and Description
public
ColumnProcessor()

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

public
ColumnProcessor(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.AbstractColumnProcessor:
getColumngetColumngetColumnValuesAsListgetColumnValuesAsMapOfIndexesgetColumnValuesAsMapOfNamesgetHeadersprocessEndedprocessStartedputColumnValuesInMapOfIndexesputColumnValuesInMapOfNamesrowProcessed

Constructor Detail

ColumnProcessorback to summary
public ColumnProcessor()

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

ColumnProcessorback to summary
public ColumnProcessor(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