T - the type of the data stored by the columns.interface ColumnReader<T>
Processors that collect the values parsed from each column in a row.
Namely: AbstractColumnProcessor, AbstractObjectColumnProcessor, AbstractBatchedColumnProcessor and AbstractBatchedObjectColumnProcessor.| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
getColumn(int columnIndex)
Returns the values of a given column.
|
java.util.List<T> |
getColumn(java.lang.String columnName)
Returns the values of a given column.
|
java.util.List<java.util.List<T>> |
getColumnValuesAsList()
Returns the values processed for each column
|
java.util.Map<java.lang.Integer,java.util.List<T>> |
getColumnValuesAsMapOfIndexes()
Returns a map of column indexes and their respective list of values parsed from the input.
|
java.util.Map<java.lang.String,java.util.List<T>> |
getColumnValuesAsMapOfNames()
Returns a map of column names and their respective list of values parsed from the input.
|
java.lang.String[] |
getHeaders()
Returns the column headers.
|
void |
putColumnValuesInMapOfIndexes(java.util.Map<java.lang.Integer,java.util.List<T>> map)
Fills a given map associating each column index to its list of values
|
void |
putColumnValuesInMapOfNames(java.util.Map<java.lang.String,java.util.List<T>> map)
Fills a given map associating each column name to its list o values
|
java.lang.String[] getHeaders()
CommonSettings.getHeaders() or the headers parsed in
the input when CommonSettings.getHeaders() equals to truejava.util.List<java.util.List<T>> getColumnValuesAsList()
void putColumnValuesInMapOfNames(java.util.Map<java.lang.String,java.util.List<T>> map)
map - the map to hold the values of each columnjava.lang.IllegalArgumentException - if a column does not have a name associated to it. In this case, use putColumnValuesInMapOfIndexes(Map) instead.void putColumnValuesInMapOfIndexes(java.util.Map<java.lang.Integer,java.util.List<T>> map)
map - the map to hold the values of each columnjava.util.Map<java.lang.String,java.util.List<T>> getColumnValuesAsMapOfNames()
java.util.Map<java.lang.Integer,java.util.List<T>> getColumnValuesAsMapOfIndexes()
java.util.List<T> getColumn(java.lang.String columnName)
columnName - the name of the column in the input.java.util.List<T> getColumn(int columnIndex)
columnIndex - the position of the column in the input (0-based).