Skip to main content

Class IngestResult

java.lang.Object
com.gpudb.filesystem.ingest.IngestResult

public class IngestResult extends Object
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.

  • Constructor Details

    • IngestResult

      public IngestResult()
      Default constructor
  • Method Details

    • isSuccessful

      public boolean isSuccessful()
      Returns:
      whether the ingest succeeded
    • setSuccessful

      public void setSuccessful(boolean successful)
    • getException

      public Exception getException()
      Returns:
      the error the ingest failed with, or null if it succeeded
    • setException

      public void setException(Exception exception)
    • getErrorMessage

      public String getErrorMessage()
      Returns:
      the message of the error the ingest failed with, or null if it succeeded
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
    • getTableName

      public String getTableName()
      Returns:
      the name of the table the records were ingested into
    • setTableName

      public void setTableName(String tableName)
    • getFiles

      public List<String> getFiles()
      Returns the source files the records would be ingested from. The server reports these only for a dry run — an ingestion mode of dry_run — and the list is otherwise empty.
      Returns:
      the source files of a dry run
    • setFiles

      public void setFiles(List<String> files)
    • getCountInserted

      public long getCountInserted()
      Returns:
      the number of records inserted; for a dry run, the number that would be inserted
    • setCountInserted

      public void setCountInserted(long countInserted)
    • getCountSkipped

      public long getCountSkipped()
      Returns:
      the number of records skipped
    • setCountSkipped

      public void setCountSkipped(long countSkipped)
    • getCountUpdated

      public long getCountUpdated()
      Returns:
      the number of records updated
    • setCountUpdated

      public void setCountUpdated(long countUpdated)