Package com.google.cloud.bigquery
Class BigQueryResultImpl<T>
java.lang.Object
com.google.cloud.bigquery.BigQueryResultImpl<T>
- All Implemented Interfaces:
BigQueryResult<T>
An implementation of BigQueryResult.
This class and the ResultSet it returns is not thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionBigQueryResultImpl(Schema schema, long totalRows, BlockingQueue<T> buffer, BigQueryResultStats bigQueryResultStats) -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Constructor Details
-
BigQueryResultImpl
public BigQueryResultImpl(Schema schema, long totalRows, BlockingQueue<T> buffer, BigQueryResultStats bigQueryResultStats)
-
-
Method Details
-
getSchema
Description copied from interface:BigQueryResultReturns the schema of the results.- Specified by:
getSchemain interfaceBigQueryResult<T>
-
getTotalRows
public long getTotalRows()Description copied from interface:BigQueryResultReturns 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:
getTotalRowsin interfaceBigQueryResult<T>
-
getResultSet
- Specified by:
getResultSetin interfaceBigQueryResult<T>
-
getBigQueryResultStats
- Specified by:
getBigQueryResultStatsin interfaceBigQueryResult<T>
-