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
ConstructorDescriptionTableResult
(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema) Ifschema
is non-null,TableResult
adds the schema toFieldValueList
s when iterating through them.TableResult
(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema, JobId jobId) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
getJobId()
Returns the schema of the results.long
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()
.final int
hashCode()
boolean
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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) Ifschema
is non-null,TableResult
adds the schema toFieldValueList
s 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
-
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:
hasNextPage
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getNextPageToken
- Specified by:
getNextPageToken
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getNextPage
- Specified by:
getNextPage
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
iterateAll
- Specified by:
iterateAll
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getValues
- Specified by:
getValues
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
toString
-
hashCode
public final int hashCode() -
equals
-