Class TableResult

java.lang.Object
com.google.cloud.bigquery.TableResult
All Implemented Interfaces:
Page<FieldValueList>, Serializable

public abstract class TableResult extends Object implements Page<FieldValueList>, Serializable
See Also:
  • Constructor Details

    • TableResult

      public TableResult()
  • Method Details

    • toBuilder

      public abstract TableResult.Builder toBuilder()
    • newBuilder

      public static TableResult.Builder newBuilder()
    • getSchema

      public abstract @Nullable Schema getSchema()
      Returns the schema of the results. Null if the schema is not supplied.
    • getTotalRows

      public abstract long getTotalRows()
      Returns the total number of rows in the complete result set, which can be more than the number of rows in the first page of results. If no rows are returned, this value can still be greater than 0 if any rows were affected by the query, such as INSERT, UPDATE, or DELETE queries.
    • getPageNoSchema

      public abstract Page<FieldValueList> getPageNoSchema()
    • getJobId

      public abstract @Nullable JobId getJobId()
    • getQueryId

      public abstract @Nullable String getQueryId()
    • getJobCreationReason

      public abstract @Nullable JobCreationReason getJobCreationReason()
    • getRowsInPage

      public abstract @Nullable Long getRowsInPage()
      Returns the number of rows in the current page of results.
    • getStatementType

      public abstract @Nullable JobStatistics.QueryStatistics.StatementType getStatementType()
      Returns the statement type of the query (e.g. SELECT, INSERT, UPDATE, DDL, SCRIPT).
      Returns:
      statement type, or null if not populated by the service
    • getTotalBytesBilled

      public abstract @Nullable Long getTotalBytesBilled()
      Returns the total number of bytes billed for the query.
      Returns:
      total bytes billed, or null if not populated by the service
    • getTotalBytesProcessed

      public abstract @Nullable Long getTotalBytesProcessed()
      Returns the total number of bytes processed by the query.
      Returns:
      total bytes processed, or null if not populated by the service
    • getTotalSlotMs

      public abstract @Nullable Long getTotalSlotMs()
      Returns the total slot milliseconds consumed by the query.
      Returns:
      total slot milliseconds, or null if not populated by the service
    • getNumDmlAffectedRows

      public abstract @Nullable Long getNumDmlAffectedRows()
      Returns the number of rows affected by a DML statement (INSERT, UPDATE, DELETE, MERGE).
      Returns:
      number of affected rows for DML queries, or null if not populated by the service
    • getSessionInfo

      public abstract @Nullable JobStatistics.SessionInfo getSessionInfo()
      Returns information about the BigQuery session if this query was executed within or created a session.
      Returns:
      session information, or null if not populated by the service
    • hasNextPage

      public boolean hasNextPage()
      Specified by:
      hasNextPage in interface Page<FieldValueList>
    • getNextPageToken

      public String getNextPageToken()
      Specified by:
      getNextPageToken in interface Page<FieldValueList>
    • getNextPage

      public TableResult getNextPage()
      Specified by:
      getNextPage in interface Page<FieldValueList>
    • iterateAll

      public Iterable<FieldValueList> iterateAll()
      Specified by:
      iterateAll in interface Page<FieldValueList>
    • getValues

      public Iterable<FieldValueList> getValues()
      Specified by:
      getValues in interface Page<FieldValueList>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

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