public class ExcelIngestor extends ExcelIngestorBase
illegalChars, logger| Constructor and Description |
|---|
ExcelIngestor()
The constructor loads in variables from the properties file.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<java.lang.String> |
getColumnHeaders(java.lang.String fileName)
When given the name of an existing file, returns the columns which exist
in the top sheet of that excel file.
|
IngestResult |
ingestFile(java.lang.String tableName,
java.lang.String fileName,
boolean merge)
Ingests the requested columns in to tableName from the provided file.
|
java.util.ArrayList<Column> |
listColumns(java.lang.String fileName)
When given the name of an existing file, returns the columns which exist
in the top sheet of that excel file.
|
static void |
main(java.lang.String[] args)
The main method.
|
checkForDups, echo, fixString, tracepublic ExcelIngestor()
public java.util.ArrayList<Column> listColumns(java.lang.String fileName)
listColumns in class ExcelIngestorBasefileName - the file namepublic java.util.ArrayList<java.lang.String> getColumnHeaders(java.lang.String fileName)
ExcelIngestorBasegetColumnHeaders in class ExcelIngestorBasefileName - the file namepublic IngestResult ingestFile(java.lang.String tableName, java.lang.String fileName, boolean merge)
ingestFile in class ExcelIngestorBasetableName - the table namefileName - the file namemerge - flag to merge with existing data in the table (true = merge, false = replace)public static void main(java.lang.String[] args)
args - the arguments