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)
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
JobId
getJobId()
TableResult
getNextPage()
String
getNextPageToken()
Schema
getSchema()
Returns the schema of the results.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()
.Iterable<FieldValueList>
getValues()
int
hashCode()
boolean
hasNextPage()
Iterable<FieldValueList>
iterateAll()
String
toString()
-
-
-
Constructor Detail
-
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 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:
hasNextPage
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getNextPageToken
public String getNextPageToken()
- Specified by:
getNextPageToken
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getNextPage
public TableResult getNextPage()
- Specified by:
getNextPage
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
iterateAll
public Iterable<FieldValueList> iterateAll()
- Specified by:
iterateAll
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
getValues
public Iterable<FieldValueList> getValues()
- Specified by:
getValues
in interfacecom.google.api.gax.paging.Page<FieldValueList>
-
-