Package net.snowflake.ingest.connection
Class HistoryResponse.FileEntry
- java.lang.Object
-
- net.snowflake.ingest.connection.HistoryResponse.FileEntry
-
- Enclosing class:
- HistoryResponse
public static class HistoryResponse.FileEntry extends Object
FileEntry - a pojo containing all of the data about a file reported back from the service
-
-
Constructor Summary
Constructors Constructor Description FileEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetErrorLimit()Number of errors allowed in the file before it is considered failed (based on ON_ERROR copy option).LonggetErrorsSeen()Number of errors seen in the fileLonggetFileSize()The size of the file as measured by the serviceStringgetFirstError()Error message for the first error encountered in this file.LonggetFirstErrorCharacterPos()Character position of the first error.StringgetFirstErrorColumnName()Column name where the first error occurred.LonggetFirstErrorLineNum()Line number of the first error.LocalDateTimegetLastInsertTime()getLastInsertTime - converts the ISO formatted lastInsertTime string into a LocalDateTimeStringgetPath()The file path relative to the stage location.LonggetRowsInserted()Number of rows inserted into the target table from the file.longgetRowsParsed()Number of rows parsed from the file.StringgetStageLocation()Either the stage ID (internal stage) or the S3 bucket (external stage) defined in the pipe.IngestStatusgetStatus()Load status for the file: LOAD_IN_PROGRESS: Part of the file has been loaded into the table, but the load process has not completed yet.StringgetSystemError()General error describing why the file was not processed.LocalDateTimegetTimeReceived()The time at which this file was enqueued by the service ISO 8601 UTCBooleanisComplete()Indicates whether the was file completely processed successfully.voidsetComplete(Boolean complete)Indicates whether the was file completely processed successfully.voidsetErrorLimit(Long errorLimit)Number of errors allowed in the file before it is considered failed (based on ON_ERROR copy option).voidsetErrorsSeen(Long errorsSeen)Number of errors seen in the filevoidsetFileSize(Long fileSize)The size of the file as measured by the servicevoidsetFirstError(String firstError)Error message for the first error encountered in this file.voidsetFirstErrorCharacterPos(Long firstErrorCharacterPos)Character position of the first error.voidsetFirstErrorColumnName(String firstErrorColumnName)Column name where the first error occurred.voidsetFirstErrorLineNum(Long firstErrorLineNum)Line number of the first error.voidsetLastInsertTime(String lastInsertTime)Time data from this file was last inserted into the table.voidsetPath(String path)The file path relative to the stage location.voidsetRowsInserted(Long rowsInserted)Number of rows inserted into the target table from the file.voidsetRowsParsed(long rowsParsed)Number of rows parsed from the file.voidsetStageLocation(String stageLocation)Either the stage ID (internal stage) or the S3 bucket (external stage) defined in the pipe.voidsetStatus(IngestStatus status)Load status for the file: LOAD_IN_PROGRESS: Part of the file has been loaded into the table, but the load process has not completed yet.voidsetSystemError(String systemError)General error describing why the file was not processed.voidsetTimeReceived(String timeReceived)The time at which this file was enqueued by the service ISO 8601 UTCStringtoString()
-
-
-
Method Detail
-
getPath
public String getPath()
The file path relative to the stage location.
-
setPath
public void setPath(String path)
The file path relative to the stage location.
-
getFileSize
public Long getFileSize()
The size of the file as measured by the service
-
setFileSize
public void setFileSize(Long fileSize)
The size of the file as measured by the service
-
getTimeReceived
public LocalDateTime getTimeReceived()
The time at which this file was enqueued by the service ISO 8601 UTC
-
setTimeReceived
public void setTimeReceived(String timeReceived)
The time at which this file was enqueued by the service ISO 8601 UTC
-
getLastInsertTime
public LocalDateTime getLastInsertTime()
getLastInsertTime - converts the ISO formatted lastInsertTime string into a LocalDateTime- Returns:
- a LocalDateTime object representation of our current time
-
setLastInsertTime
public void setLastInsertTime(String lastInsertTime)
Time data from this file was last inserted into the table. ISO 8601 UTC
-
getRowsInserted
public Long getRowsInserted()
Number of rows inserted into the target table from the file.
-
setRowsInserted
public void setRowsInserted(Long rowsInserted)
Number of rows inserted into the target table from the file.
-
isComplete
public Boolean isComplete()
Indicates whether the was file completely processed successfully.
-
setComplete
public void setComplete(Boolean complete)
Indicates whether the was file completely processed successfully.
-
getRowsParsed
public long getRowsParsed()
Number of rows parsed from the file. Rows with errors may be skipped.
-
setRowsParsed
public void setRowsParsed(long rowsParsed)
Number of rows parsed from the file. Rows with errors may be skipped.
-
getErrorsSeen
public Long getErrorsSeen()
Number of errors seen in the file
-
setErrorsSeen
public void setErrorsSeen(Long errorsSeen)
Number of errors seen in the file
-
getErrorLimit
public Long getErrorLimit()
Number of errors allowed in the file before it is considered failed (based on ON_ERROR copy option).
-
setErrorLimit
public void setErrorLimit(Long errorLimit)
Number of errors allowed in the file before it is considered failed (based on ON_ERROR copy option).
-
getFirstError
public String getFirstError()
Error message for the first error encountered in this file.
-
setFirstError
public void setFirstError(String firstError)
Error message for the first error encountered in this file.
-
getFirstErrorLineNum
public Long getFirstErrorLineNum()
Line number of the first error.
-
setFirstErrorLineNum
public void setFirstErrorLineNum(Long firstErrorLineNum)
Line number of the first error.
-
getFirstErrorCharacterPos
public Long getFirstErrorCharacterPos()
Character position of the first error.
-
setFirstErrorCharacterPos
public void setFirstErrorCharacterPos(Long firstErrorCharacterPos)
Character position of the first error.
-
getFirstErrorColumnName
public String getFirstErrorColumnName()
Column name where the first error occurred.
-
setFirstErrorColumnName
public void setFirstErrorColumnName(String firstErrorColumnName)
Column name where the first error occurred.
-
getSystemError
public String getSystemError()
General error describing why the file was not processed.
-
setSystemError
public void setSystemError(String systemError)
General error describing why the file was not processed.
-
getStageLocation
public String getStageLocation()
Either the stage ID (internal stage) or the S3 bucket (external stage) defined in the pipe.
-
setStageLocation
public void setStageLocation(String stageLocation)
Either the stage ID (internal stage) or the S3 bucket (external stage) defined in the pipe.
-
getStatus
public IngestStatus getStatus()
Load status for the file: LOAD_IN_PROGRESS: Part of the file has been loaded into the table, but the load process has not completed yet. LOADED: The entire file has been loaded into the table. LOAD_FAILED: The file load failed. PARTIALLY_LOADED: Some rows from this file were loaded successfully, but others were not loaded due to errors. Processing of this file is completed.
-
setStatus
public void setStatus(IngestStatus status)
Load status for the file: LOAD_IN_PROGRESS: Part of the file has been loaded into the table, but the load process has not completed yet. LOADED: The entire file has been loaded into the table. LOAD_FAILED: The file load failed. PARTIALLY_LOADED: Some rows from this file were loaded successfully, but others were not loaded due to errors. Processing of this file is completed.
-
-