Package net.snowflake.ingest.streaming
Class InsertValidationResponse.InsertError
- java.lang.Object
-
- net.snowflake.ingest.streaming.InsertValidationResponse.InsertError
-
- Enclosing class:
- InsertValidationResponse
public static class InsertValidationResponse.InsertError extends Object
Wraps the row content and exception when there is a failure
-
-
Constructor Summary
Constructors Constructor Description InsertError(Object row, long rowIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SFException
getException()
Get the exceptionList<String>
getExtraColNames()
Get the list of extra column names in the input row compared with the table schemaString
getMessage()
Get the exception messageList<String>
getMissingNotNullColNames()
Get the list of missing non-nullable column names in the input row compared with the table schemaObject
getRowContent()
Get the row contentlong
getRowIndex()
Get the rowIndex.void
setException(SFException exception)
Set the insert exceptionvoid
setExtraColNames(List<String> extraColNames)
Set the extra column names in the input row compared with the table schemavoid
setMissingNotNullColNames(List<String> missingNotNullColNames)
Set the missing non-nullable column names in the input row compared with the table schemavoid
setRowIndex(long rowIndex)
Set the row index
-
-
-
Constructor Detail
-
InsertError
public InsertError(Object row, long rowIndex)
-
-
Method Detail
-
getRowContent
public Object getRowContent()
Get the row content
-
getMessage
public String getMessage()
Get the exception message
-
setException
public void setException(SFException exception)
Set the insert exception- Parameters:
exception
- exception encountered during the insert
-
getException
public SFException getException()
Get the exception
-
setRowIndex
public void setRowIndex(long rowIndex)
Set the row index- Parameters:
rowIndex
- the corresponding row index in the original input row list
-
getRowIndex
public long getRowIndex()
Get the rowIndex. Please note, this index is 0 based so it can be used in fetching nth row from the input. (SnowflakeStreamingIngestChannel.insertRows(Iterable, String)
)
-
setExtraColNames
public void setExtraColNames(List<String> extraColNames)
Set the extra column names in the input row compared with the table schema
-
getExtraColNames
public List<String> getExtraColNames()
Get the list of extra column names in the input row compared with the table schema
-
setMissingNotNullColNames
public void setMissingNotNullColNames(List<String> missingNotNullColNames)
Set the missing non-nullable column names in the input row compared with the table schema
-
-