Package com.opencsv.bean.concurrent
Class ProcessCsvLine<T>
- java.lang.Object
-
- com.opencsv.bean.concurrent.ProcessCsvLine<T>
-
- Type Parameters:
T
- The type of the bean being created
- All Implemented Interfaces:
java.lang.Runnable
public class ProcessCsvLine<T> extends java.lang.Object implements java.lang.Runnable
A class that encapsulates the job of creating a bean from a line of CSV input and making it possible to run those jobs in parallel.- Since:
- 4.0
- Author:
- Andrew Rucker Jones
-
-
Constructor Summary
Constructors Constructor Description ProcessCsvLine(long lineNumber, MappingStrategy<? extends T> mapper, CsvToBeanFilter filter, java.util.List<BeanVerifier<T>> verifiers, java.lang.String[] line, java.util.concurrent.BlockingQueue<OrderedObject<T>> resultantBeanQueue, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, boolean throwExceptions)
The only constructor for creating a bean out of a line of input.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
-
-
Constructor Detail
-
ProcessCsvLine
public ProcessCsvLine(long lineNumber, MappingStrategy<? extends T> mapper, CsvToBeanFilter filter, java.util.List<BeanVerifier<T>> verifiers, java.lang.String[] line, java.util.concurrent.BlockingQueue<OrderedObject<T>> resultantBeanQueue, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, boolean throwExceptions)
The only constructor for creating a bean out of a line of input.- Parameters:
lineNumber
- Which record in the input file is being processedmapper
- The mapping strategy to be usedfilter
- A filter to remove beans from the running, if necessary. May be null.verifiers
- The list of verifiers to run on beans after creationline
- The line of input to be transformed into a beanresultantBeanQueue
- A queue in which to place the bean createdthrownExceptionsQueue
- A queue in which to place a thrown exception, if one is thrownthrowExceptions
- Whether exceptions should be thrown, ending processing, or suppressed and saved for later processing
-
-