Package net.snowflake.ingest.streaming
Class InsertValidationResponse
- java.lang.Object
-
- net.snowflake.ingest.streaming.InsertValidationResponse
-
public class InsertValidationResponse extends Object
Response for an insert operation into a channel, which may contain a list ofInsertValidationResponse.InsertErrorobjects if there is any failure during insertion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInsertValidationResponse.InsertErrorWraps the row content and exception when there is a failure
-
Constructor Summary
Constructors Constructor Description InsertValidationResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(InsertValidationResponse.InsertError error)Add an insertion error to the error listintgetErrorRowCount()Get the number of erroneous row countList<InsertValidationResponse.InsertError>getInsertErrors()Get the list of insertion errors, the list is empty if no errorbooleanhasErrors()Check whether there is any error during insertion
-
-
-
Method Detail
-
hasErrors
public boolean hasErrors()
Check whether there is any error during insertion- Returns:
- false if no insertion error, otherwise true
-
getInsertErrors
public List<InsertValidationResponse.InsertError> getInsertErrors()
Get the list of insertion errors, the list is empty if no error
-
getErrorRowCount
public int getErrorRowCount()
Get the number of erroneous row count
-
addError
public void addError(InsertValidationResponse.InsertError error)
Add an insertion error to the error list- Parameters:
error-InsertValidationResponse.InsertErrorobject which contains the row content and exception
-
-