Package | Description |
---|---|
com.univocity.parsers.common | |
com.univocity.parsers.common.processor | |
com.univocity.parsers.common.processor.core |
Modifier and Type | Field and Description |
---|---|
private Processor<? extends Context> |
CommonParserSettings.processor |
protected Processor |
AbstractParser.processor |
Modifier and Type | Method and Description |
---|---|
<T extends Context> |
CommonParserSettings.getProcessor()
Returns the callback implementation of the interface
Processor which handles the lifecycle of the parsing process and processes each record extracted from the input |
Modifier and Type | Method and Description |
---|---|
static <C extends Context> |
Internal.process(java.lang.String[] row,
Processor<C> processor,
C context,
ProcessorErrorHandler<C> errorHandler) |
void |
CommonParserSettings.setProcessor(Processor<? extends Context> processor)
Defines the callback implementation of the interface
Processor which handles the lifecycle of the parsing process and processes each record extracted from the input |
private static void |
Internal.throwDataProcessingException(Processor processor,
java.lang.Throwable t,
java.lang.String[] row,
int errorContentLength) |
Modifier and Type | Interface and Description |
---|---|
interface |
RowProcessor
The essential callback interface to handle records parsed by any parser that extends
AbstractParser . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRowProcessor
A
RowProcessor implementation that just implements all methods defined by the interface. |
class |
BatchedColumnProcessor
A
RowProcessor implementation that stores values of columns in batches. |
class |
BatchedObjectColumnProcessor
A
RowProcessor implementation for converting batches of rows extracted from any implementation of AbstractParser into columns of objects. |
class |
BeanListProcessor<T>
A convenience
BeanProcessor implementation for storing all java objects generated form the parsed input into a list. |
class |
BeanProcessor<T>
A
RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into java objects. |
class |
ColumnProcessor
A simple
RowProcessor implementation that stores values of columns. |
class |
ConcurrentRowProcessor
A
RowProcessor implementation to perform row processing tasks in parallel. |
class |
InputValueSwitch
A concrete implementation of
RowProcessorSwitch that allows switching among different implementations of
RowProcessor based on values found on the rows parsed from the input. |
class |
MasterDetailListProcessor
A convenience
MasterDetailProcessor implementation for storing all MasterDetailRecord generated form the parsed input into a list. |
class |
MasterDetailProcessor
A
RowProcessor implementation for associating rows extracted from any implementation of AbstractParser into MasterDetailRecord instances. |
class |
MultiBeanListProcessor
A
RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into java objects, storing
them into lists. |
class |
MultiBeanProcessor
A
RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into java objects. |
class |
MultiBeanRowProcessor
A
RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into java objects. |
class |
NoopRowProcessor
A singleton instance of a
RowProcessor that does nothing. |
class |
ObjectColumnProcessor
A
RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into columns of objects. |
class |
ObjectRowListProcessor
A convenience
RowProcessor implementation for storing all rows parsed and converted to Object arrays into a list. |
class |
ObjectRowProcessor
A
RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into arrays of objects. |
class |
RowListProcessor
A convenience
RowProcessor implementation for storing all rows parsed into a list. |
class |
RowProcessorSwitch
A special
RowProcessor implementation that combines and allows switching among different
RowProcessors. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBatchedColumnProcessor<T extends Context>
A
Processor implementation that stores values of columns in batches. |
class |
AbstractBatchedObjectColumnProcessor<T extends Context>
A
Processor implementation for converting batches of rows extracted from any implementation of AbstractParser into columns of objects. |
class |
AbstractBeanListProcessor<T,C extends Context>
A convenience
Processor implementation for storing all java objects generated form the parsed input into a list. |
class |
AbstractBeanProcessor<T,C extends Context>
A
Processor implementation for converting rows extracted from any implementation of AbstractParser into java objects. |
class |
AbstractColumnProcessor<T extends Context>
A simple
Processor implementation that stores values of columns. |
class |
AbstractConcurrentProcessor<T extends Context>
A
Processor implementation to perform row processing tasks in parallel. |
class |
AbstractInputValueSwitch<T extends Context>
|
class |
AbstractListProcessor<T extends Context>
A convenience
Processor implementation for storing all rows parsed into a list. |
class |
AbstractMasterDetailListProcessor<T extends Context>
A convenience
Processor implementation for storing all MasterDetailRecord generated form the parsed input into a list. |
class |
AbstractMasterDetailProcessor<T extends Context>
A
Processor implementation for associating rows extracted from any implementation of AbstractParser into MasterDetailRecord instances. |
class |
AbstractMultiBeanListProcessor<C extends Context>
A
Processor implementation for converting rows extracted from any implementation of AbstractParser into java objects, storing
them into lists. |
class |
AbstractMultiBeanProcessor<C extends Context>
A
Processor implementation for converting rows extracted from any implementation of AbstractParser into java objects. |
class |
AbstractMultiBeanRowProcessor<C extends Context>
A
Processor implementation for converting rows extracted from any implementation of AbstractParser into java objects. |
class |
AbstractObjectColumnProcessor<T extends Context>
A
Processor implementation for converting rows extracted from any implementation of AbstractParser into columns of objects. |
class |
AbstractObjectListProcessor<T extends Context>
A convenience
Processor implementation for storing all rows parsed and converted to Object arrays into a list. |
class |
AbstractObjectProcessor<T extends Context>
A
Processor implementation for converting rows extracted from any implementation of AbstractParser into arrays of objects. |
class |
AbstractProcessor<T extends Context>
A
Processor implementation that just implements all methods defined by the interface. |
class |
AbstractProcessorSwitch<T extends Context>
A special
Processor implementation that combines and allows switching among different
Processors. |
class |
NoopProcessor
A singleton instance of a
Processor that does nothing. |
Modifier and Type | Field and Description |
---|---|
static Processor |
NoopProcessor.instance
The singleton instance of the no-op
Processor |
private Processor |
AbstractConcurrentProcessor.processor |
(package private) Processor<T> |
AbstractInputValueSwitch.Switch.processor |
private Processor |
AbstractProcessorSwitch.selectedProcessor |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Processor,ContextWrapper> |
AbstractProcessorSwitch.processors |
Modifier and Type | Method and Description |
---|---|
protected Processor<T> |
AbstractInputValueSwitch.switchRowProcessor(java.lang.String[] row,
T context) |
protected abstract Processor<T> |
AbstractProcessorSwitch.switchRowProcessor(java.lang.String[] row,
T context)
Analyzes the input to determine whether or not the row processor implementation must be changed
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractInputValueSwitch.addSwitchForValue(CustomMatcher matcher,
Processor<T> processor)
Associates a
Processor implementation with a custom matching algorithm to be executed in the column provided in the constructor of this class. |
void |
AbstractInputValueSwitch.addSwitchForValue(CustomMatcher matcher,
Processor<T> processor,
int... indexesToUse)
Associates a
Processor implementation with a custom matching algorithm to be executed in the column provided in the constructor of this class. |
void |
AbstractInputValueSwitch.addSwitchForValue(CustomMatcher matcher,
Processor<T> processor,
java.lang.String... headersToUse)
Associates a
Processor implementation with a custom matching algorithm to be executed in the column provided in the constructor of this class. |
void |
AbstractInputValueSwitch.addSwitchForValue(java.lang.String value,
Processor<T> processor)
Associates a
Processor implementation with an expected value to be matched in the column provided in the constructor of this class. |
void |
AbstractInputValueSwitch.addSwitchForValue(java.lang.String value,
Processor<T> processor,
int... indexesToUse)
Associates a
Processor implementation with an expected value to be matched in the column provided in the constructor of this class. |
void |
AbstractInputValueSwitch.addSwitchForValue(java.lang.String value,
Processor<T> processor,
java.lang.String... headersToUse)
Associates a
Processor implementation with an expected value to be matched in the column provided in the constructor of this class. |
void |
AbstractProcessorSwitch.processorSwitched(Processor<T> from,
Processor<T> to)
Notifies a change of
Processor implementation. |
void |
AbstractProcessorSwitch.processorSwitched(Processor<T> from,
Processor<T> to)
Notifies a change of
Processor implementation. |
void |
AbstractInputValueSwitch.setDefaultSwitch(Processor<T> processor)
Defines a default
Processor implementation to use when no matching value is found in the input row. |
void |
AbstractInputValueSwitch.setDefaultSwitch(Processor<T> processor,
int... indexesToUse)
Defines a default
Processor implementation to use when no matching value is found in the input row. |
void |
AbstractInputValueSwitch.setDefaultSwitch(Processor<T> processor,
java.lang.String... headersToUse)
Defines a default
Processor implementation to use when no matching value is found in the input row. |
Constructor and Description |
---|
AbstractConcurrentProcessor(Processor<T> processor)
Creates a non-blocking
AbstractConcurrentProcessor , to perform processing of rows parsed from the input in a separate thread. |
AbstractConcurrentProcessor(Processor<T> processor,
int limit)
Creates a blocking
ConcurrentProcessor , to perform processing of rows parsed from the input in a separate thread. |
Switch(Processor<T> processor,
java.lang.String[] headers,
int[] indexes,
java.lang.String value,
CustomMatcher matcher) |