Package com.gpudb.filesystem.ingest
Class IngestResult
java.lang.Object
com.gpudb.filesystem.ingest.IngestResult
The outcome of a file ingest, as returned by
GPUdbFileHandler.ingest(List, String, IngestOptions, TableCreationOptions).
ingest returns a result only when the ingest succeeds; a failure is thrown as a GPUdbException instead. A returned result therefore always reports success, with no exception or error message.
Method Summary
Modifier and TypeMethodDescriptionlonglonglonggetFiles()Returns the source files the records would be ingested from.booleanvoidsetCountInserted(long countInserted) voidsetCountSkipped(long countSkipped) voidsetCountUpdated(long countUpdated) voidsetErrorMessage(String errorMessage) voidsetException(Exception exception) voidvoidsetSuccessful(boolean successful) voidsetTableName(String tableName)
Method Details
setSuccessful
public void setSuccessful(boolean successful) getFiles
Returns the source files the records would be ingested from. The server reports these only for a dry run — aningestion modeofdry_run— and the list is otherwise empty.Returns:the source files of a dry rungetCountInserted
public long getCountInserted()Returns:the number of records inserted; for a dry run, the number that would be insertedsetCountInserted
public void setCountInserted(long countInserted) setCountSkipped
public void setCountSkipped(long countSkipped) setCountUpdated
public void setCountUpdated(long countUpdated)