public static class JobStatistics.QueryStatistics extends JobStatistics
A Google BigQuery Query Job statistics.
Methods
equals(Object obj)
public final boolean equals(Object obj)
Parameter
Returns
Overrides
getBiEngineStats()
public BiEngineStats getBiEngineStats()
Returns query statistics specific to the use of BI Engine.
Returns
getBillingTier()
public Integer getBillingTier()
Returns the billing tier for the job.
Returns
getCacheHit()
public Boolean getCacheHit()
Returns whether the query result was fetched from the query cache.
See Also: Query Caching
Returns
public String getDdlOperationPerformed()
[BETA] For DDL queries, returns the operation applied to the DDL target table.
Returns
getDdlTargetRoutine()
public RoutineId getDdlTargetRoutine()
[BETA] For DDL queries, returns the RoutineId of the targeted routine.
Returns
getDdlTargetTable()
public TableId getDdlTargetTable()
[BETA] For DDL queries, returns the TableID of the targeted table.
Returns
getDmlStats()
public DmlStats getDmlStats()
Detailed statistics for DML statements.
Returns
getEstimatedBytesProcessed()
public Long getEstimatedBytesProcessed()
The original estimate of bytes processed for the job.
Returns
getNumDmlAffectedRows()
public Long getNumDmlAffectedRows()
The number of rows affected by a DML statement. Present only for DML statements INSERT,
UPDATE or DELETE.
Returns
getQueryPlan()
public List<QueryStage> getQueryPlan()
Returns the query plan as a list of stages or null
if a query plan is not available.
Each stage involves a number of steps that read from data sources, perform a series of
transformations on the input, and emit an output to a future stage (or the final result). The
query plan is available for a completed query job and is retained for 7 days.
See Also: Query Plan
Returns
getReferencedTables()
public List<TableId> getReferencedTables()
Referenced tables for the job. Queries that reference more than 50 tables will not have a
complete list.
Returns
getSchema()
public Schema getSchema()
Returns the schema for the query result. Present only for successful dry run of non-legacy
SQL queries.
Returns
getStatementType()
public JobStatistics.QueryStatistics.StatementType getStatementType()
[BETA] The type of query statement, if valid. Possible values include: SELECT INSERT UPDATE
DELETE CREATE_TABLE CREATE_TABLE_AS_SELECT DROP_TABLE CREATE_VIEW DROP_VIEW
Returns
getTimeline()
public List<TimelineSample> getTimeline()
Return the timeline for the query, as a list of timeline samples. Each sample provides
information about the overall progress of the query. Information includes time of the sample,
progress reporting on active, completed, and pending units of work, as well as the cumulative
estimation of slot-milliseconds consumed by the query.
Returns
getTotalBytesBilled()
public Long getTotalBytesBilled()
Returns the total number of bytes billed for the job.
Returns
getTotalBytesProcessed()
public Long getTotalBytesProcessed()
Returns the total number of bytes processed by the job.
Returns
getTotalPartitionsProcessed()
public Long getTotalPartitionsProcessed()
Total number of partitions processed from all partitioned tables referenced in the job.
Returns
getTotalSlotMs()
public Long getTotalSlotMs()
Returns the slot-milliseconds consumed by the query.
Returns
hashCode()
public final int hashCode()
Returns
Overrides