public class FileIngestor extends Object
Constructor and Description |
---|
FileIngestor(GPUdb db,
String tableName,
List<String> fileNames,
IngestOptions ingestOptions,
TableCreationOptions createTableOptions) |
Modifier and Type | Method and Description |
---|---|
TableCreationOptions |
getCreateTableOptions() |
IngestOptions |
getIngestOptions() |
IngestResult |
ingestFromFiles()
This method uploads the files using the
fileUploader object
and calls the method GPUdb.insertRecordsFromFiles(String, List, Map, Map, Map)
to ingest from the uploaded files. |
void |
setCreateTableOptions(TableCreationOptions createTableOptions) |
void |
setIngestOptions(IngestOptions ingestOptions) |
public FileIngestor(GPUdb db, String tableName, List<String> fileNames, IngestOptions ingestOptions, TableCreationOptions createTableOptions) throws GPUdbException
GPUdbException
public IngestOptions getIngestOptions()
public void setIngestOptions(IngestOptions ingestOptions)
public TableCreationOptions getCreateTableOptions()
public void setCreateTableOptions(TableCreationOptions createTableOptions)
public IngestResult ingestFromFiles()
fileUploader
object
and calls the method GPUdb.insertRecordsFromFiles(String, List, Map, Map, Map)
to ingest from the uploaded files.
The files are uploaded to the location identified by 'kifs://~/IngestResult
objectCopyright © 2024. All rights reserved.