Package com.google.cloud.bigquery
Class BigQueryResultImpl<T>
- java.lang.Object
-
- com.google.cloud.bigquery.BigQueryResultImpl<T>
-
- All Implemented Interfaces:
BigQueryResult<T>
public class BigQueryResultImpl<T> extends Object implements BigQueryResult<T>
-
-
Constructor Summary
Constructors Constructor Description BigQueryResultImpl(Schema schema, long totalRows, BlockingQueue<T> buffer, BigQueryResultStats bigQueryResultStats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigQueryResultStats
getBigQueryResultStats()
ResultSet
getResultSet()
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.
-
-
-
Constructor Detail
-
BigQueryResultImpl
public BigQueryResultImpl(Schema schema, long totalRows, BlockingQueue<T> buffer, BigQueryResultStats bigQueryResultStats)
-
-
Method Detail
-
getSchema
public Schema getSchema()
Description copied from interface:BigQueryResult
Returns the schema of the results.- Specified by:
getSchema
in interfaceBigQueryResult<T>
-
getTotalRows
public long getTotalRows()
Description copied from interface:BigQueryResult
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. This might return -1 if the query is long running and the job is not complete at the time this object is returned.- Specified by:
getTotalRows
in interfaceBigQueryResult<T>
-
getResultSet
public ResultSet getResultSet()
- Specified by:
getResultSet
in interfaceBigQueryResult<T>
-
getBigQueryResultStats
public BigQueryResultStats getBigQueryResultStats()
- Specified by:
getBigQueryResultStats
in interfaceBigQueryResult<T>
-
-