public class AsciiIngestor extends ExcelIngestorBase
ExcelIngestorBase| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
seperator
The seperator.
|
illegalChars, logger| Constructor and Description |
|---|
AsciiIngestor(java.lang.String seperator,
java.lang.String[] illegalChars)
Instantiates a new ascii ingestor.
|
| 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 AsciiIngestor(java.lang.String seperator,
java.lang.String[] illegalChars)
seperator - the character separating values (i.e. '\t', ',', etc)illegalChars - the illegal chars (i.e. {" ", ",", "-", ";", "\'", "\t", "\\."})public java.util.ArrayList<Column> listColumns(java.lang.String fileName)
ExcelIngestorBaselistColumns 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)
ExcelIngestorBaseingestFile 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