class FileRowConverter extends Object
| Modifier and Type | Class and Description |
|---|---|
private class |
FileRowConverter.CellReader
Parses an an HTML table cell.
|
private class |
FileRowConverter.FieldDef
Responsible for managing field (column) definition,
and for converting an Element to a java data type.
|
| Modifier and Type | Field and Description |
|---|---|
private List<Map<String,Object>> |
fieldConfigs |
private List<FileRowConverter.FieldDef> |
fields |
private FileReader |
fileReader |
private boolean |
initialized |
private NumberFormat |
integerFormat
Format for parsing integers.
|
private NumberFormat |
numberFormat
Format for parsing numbers.
|
| Constructor and Description |
|---|
FileRowConverter(FileReader fileReader,
List<Map<String,Object>> fieldConfigs)
Creates a FileRowConverter.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addFieldDef(String name,
FileFieldType type,
Map<String,Object> config,
int sourceCol) |
(package private) RelDataType |
getRowType(JavaTypeFactory typeFactory) |
private void |
initialize() |
(package private) Object |
toRow(org.jsoup.select.Elements rowElements,
int[] projection)
Converts a row of JSoup Elements to an array of java objects.
|
(package private) int |
width() |
private final FileReader fileReader
private boolean initialized
private final List<FileRowConverter.FieldDef> fields
private final NumberFormat numberFormat
private final NumberFormat integerFormat
FileRowConverter(FileReader fileReader, List<Map<String,Object>> fieldConfigs)
private void initialize()
private void addFieldDef(String name, FileFieldType type, Map<String,Object> config, int sourceCol)
Object toRow(org.jsoup.select.Elements rowElements, int[] projection)
int width()
RelDataType getRowType(JavaTypeFactory typeFactory)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.