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.InsertError
objects if there is any failure during insertion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InsertValidationResponse.InsertError
Wraps 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 void
addError(InsertValidationResponse.InsertError error)
Add an insertion error to the error listint
getErrorRowCount()
Get the number of erroneous row countList<InsertValidationResponse.InsertError>
getInsertErrors()
Get the list of insertion errors, the list is empty if no errorboolean
hasErrors()
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.InsertError
object which contains the row content and exception
-
-