Package com.google.cloud.bigquery
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 Summary
ConstructorsConstructorDescriptionTableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema, JobId jobId, String queryId) TableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema, String queryId) Ifschemais non-null,TableResultadds the schema toFieldValueLists when iterating through them. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleangetJobId()Returns the schema of the results.longReturns 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 bygetValues().final inthashCode()booleantoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.api.gax.paging.Page
streamAll, streamValues
-
Constructor Details
-
TableResult
@InternalApi("Exposed for testing") public TableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema, String queryId) Ifschemais non-null,TableResultadds the schema toFieldValueLists when iterating through them.pageNoSchemamust not be null. -
TableResult
@InternalApi("Exposed for testing") public TableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema, JobId jobId, String queryId)
-
-
Method Details
-
getJobId
-
getQueryId
-
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 bygetValues(). -
hasNextPage
public boolean hasNextPage()- Specified by:
hasNextPagein interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getNextPageToken
- Specified by:
getNextPageTokenin interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getNextPage
- Specified by:
getNextPagein interfacecom.google.api.gax.paging.Page<FieldValueList>
-
iterateAll
- Specified by:
iterateAllin interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getValues
- Specified by:
getValuesin interfacecom.google.api.gax.paging.Page<FieldValueList>
-
toString
-
hashCode
public final int hashCode() -
equals
-