Package com.google.cloud.bigquery
Class InsertAllResponse
- java.lang.Object
-
- com.google.cloud.bigquery.InsertAllResponse
-
- All Implemented Interfaces:
Serializable
public class InsertAllResponse extends Object implements Serializable
Google Cloud BigQuery insert all response. Objects of this class possibly contain errors for anInsertAllRequest. If a row failed to be inserted, the non-empty list of errors associated to that row's index can be obtained withgetErrorsFor(long).getInsertErrors()can be used to return all errors caused by aInsertAllRequestas a map.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<BigQueryError>getErrorsFor(long index)Returns errors for the provided row index.Map<Long,List<BigQueryError>>getInsertErrors()Returns all insertion errors as a map whose keys are indexes of rows that failed to insert.booleanhasErrors()Returnstrueif no row insertion failed,falseotherwise.inthashCode()StringtoString()
-
-
-
Method Detail
-
getInsertErrors
public Map<Long,List<BigQueryError>> getInsertErrors()
Returns all insertion errors as a map whose keys are indexes of rows that failed to insert. Each failed row index is associated with a non-empty list ofBigQueryError.
-
getErrorsFor
public List<BigQueryError> getErrorsFor(long index)
Returns errors for the provided row index. If no error exists returnsnull.
-
hasErrors
public boolean hasErrors()
Returnstrueif no row insertion failed,falseotherwise. IffalsegetInsertErrors()returns an empty map.
-
-