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 BigQueryResultStatsgetBigQueryResultStats()ResultSetgetResultSet()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.
-
-
-
Constructor Detail
-
BigQueryResultImpl
public BigQueryResultImpl(Schema schema, long totalRows, BlockingQueue<T> buffer, BigQueryResultStats bigQueryResultStats)
-
-
Method Detail
-
getSchema
public Schema 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
public ResultSet getResultSet()
- Specified by:
getResultSetin interfaceBigQueryResult<T>
-
getBigQueryResultStats
public BigQueryResultStats getBigQueryResultStats()
- Specified by:
getBigQueryResultStatsin interfaceBigQueryResult<T>
-
-