Class InsertAllResponse (2.39.1)

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
Name Description
obj Object
Returns
Type Description
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
Name Description
index long
Returns
Type Description
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
Type Description
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
Type Description
boolean

hashCode()

public final int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides