Package com.google.cloud.bigquery
Class InsertAllResponse
java.lang.Object
com.google.cloud.bigquery.InsertAllResponse
- All Implemented Interfaces:
Serializable
Google Cloud BigQuery insert all response. Objects of this class possibly contain errors for an
InsertAllRequest
. If a row failed to be inserted, the non-empty list of errors associated
to that row's index can be obtained with getErrorsFor(long)
. getInsertErrors()
can be used to return all errors caused by a InsertAllRequest
as a map.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
getErrorsFor
(long index) Returns errors for the provided row index.Returns all insertion errors as a map whose keys are indexes of rows that failed to insert.boolean
Returnstrue
if no row insertion failed,false
otherwise.final int
hashCode()
toString()
-
Method Details
-
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
Returns errors for the provided row index. If no error exists returnsnull
. -
hasErrors
public boolean hasErrors()Returnstrue
if no row insertion failed,false
otherwise. Iffalse
getInsertErrors()
returns an empty map. -
hashCode
public final int hashCode() -
equals
-
toString
-