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 aInsertAllRequest
as a map.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(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.boolean
hasErrors()
Returnstrue
if no row insertion failed,false
otherwise.int
hashCode()
String
toString()
-
-
-
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()
Returnstrue
if no row insertion failed,false
otherwise. Iffalse
getInsertErrors()
returns an empty map.
-
-