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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema)Ifschemais non-null,TableResultadds the schema toFieldValueLists when iterating through them.TableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema, JobId jobId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)JobIdgetJobId()TableResultgetNextPage()StringgetNextPageToken()SchemagetSchema()Returns the schema of the results.longgetTotalRows()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().Iterable<FieldValueList>getValues()inthashCode()booleanhasNextPage()Iterable<FieldValueList>iterateAll()StringtoString()
-
-
-
Constructor Detail
-
TableResult
@InternalApi("Exposed for testing") public TableResult(Schema schema, long totalRows, com.google.api.gax.paging.Page<FieldValueList> pageNoSchema)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)
-
-
Method Detail
-
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 bygetValues().
-
hasNextPage
public boolean hasNextPage()
- Specified by:
hasNextPagein interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getNextPageToken
public String getNextPageToken()
- Specified by:
getNextPageTokenin interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getNextPage
public TableResult getNextPage()
- Specified by:
getNextPagein interfacecom.google.api.gax.paging.Page<FieldValueList>
-
iterateAll
public Iterable<FieldValueList> iterateAll()
- Specified by:
iterateAllin interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getValues
public Iterable<FieldValueList> getValues()
- Specified by:
getValuesin interfacecom.google.api.gax.paging.Page<FieldValueList>
-
-