Class TableResult

java.lang.Object
com.google.cloud.bigquery.TableResult
All Implemented Interfaces:
com.google.api.gax.paging.Page<FieldValueList>, Serializable
Direct Known Subclasses:
EmptyTableResult

public class TableResult extends Object implements com.google.api.gax.paging.Page<FieldValueList>, Serializable
See Also:
  • Constructor Details

    • TableResult

      @InternalApi("Exposed for testing") public TableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema)
      If schema is non-null, TableResult adds the schema to FieldValueLists when iterating through them. pageNoSchema must not be null.
    • TableResult

      @InternalApi("Exposed for testing") public TableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema, JobId jobId)
  • Method Details

    • getJobId

      public JobId getJobId()
    • getSchema

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

      public 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 returned by getValues().
    • hasNextPage

      public boolean hasNextPage()
      Specified by:
      hasNextPage in interface com.google.api.gax.paging.Page<FieldValueList>
    • getNextPageToken

      public String getNextPageToken()
      Specified by:
      getNextPageToken in interface com.google.api.gax.paging.Page<FieldValueList>
    • getNextPage

      public TableResult getNextPage()
      Specified by:
      getNextPage in interface com.google.api.gax.paging.Page<FieldValueList>
    • iterateAll

      public Iterable<FieldValueList> iterateAll()
      Specified by:
      iterateAll in interface com.google.api.gax.paging.Page<FieldValueList>
    • getValues

      public Iterable<FieldValueList> getValues()
      Specified by:
      getValues in interface com.google.api.gax.paging.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