public class FileIngestor extends Object
filesystem
API. The consequences of using this class directly in
client code is not guaranteed and maybe undesirable.
This class uses FileUploader class to upload files to server and then
uses insertRecordsFromFile method to ingest the uploaded file.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)
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 © 2025. All rights reserved.