Class InsertAllResponse (2.14.2)

public class InsertAllResponse implements 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 InsertAllResponse#getErrorsFor(long). InsertAllResponse#getInsertErrors() can be used to return all errors caused by a InsertAllRequest as a map.

Inheritance

Object > InsertAllResponse

Implements

Serializable

Methods

equals(Object obj)

public final boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getErrorsFor(long index)

public List<BigQueryError> getErrorsFor(long index)

Returns errors for the provided row index. If no error exists returns null.

Parameter
NameDescription
indexlong
Returns
TypeDescription
List<BigQueryError>

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 of BigQueryError.

Returns
TypeDescription
Map<Long,List<BigQueryError>>

hasErrors()

public boolean hasErrors()

Returns true if no row insertion failed, false otherwise. If false #getInsertErrors() returns an empty map.

Returns
TypeDescription
boolean

hashCode()

public final int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides