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 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 Details

    • 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.
    • getErrorsFor

      public List<BigQueryError> getErrorsFor(long index)
      Returns errors for the provided row index. If no error exists returns null.
    • hasErrors

      public boolean hasErrors()
      Returns true if no row insertion failed, false otherwise. If false getInsertErrors() returns an empty map.
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object