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, trace
public ExcelIngestor()
public java.util.ArrayList<Column> listColumns(java.lang.String fileName)
listColumns
in class ExcelIngestorBase
fileName
- the file namepublic java.util.ArrayList<java.lang.String> getColumnHeaders(java.lang.String fileName)
ExcelIngestorBase
getColumnHeaders
in class ExcelIngestorBase
fileName
- the file namepublic IngestResult ingestFile(java.lang.String tableName, java.lang.String fileName, boolean merge)
ingestFile
in class ExcelIngestorBase
tableName
- 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