public static class JobStatistics.QueryStatistics extends JobStatistics
Modifier and Type | Class and Description |
---|---|
static class |
JobStatistics.QueryStatistics.StatementType
StatementType represents possible types of SQL statements reported as part of the
QueryStatistics of a BigQuery job.
|
JobStatistics.CopyStatistics, JobStatistics.ExtractStatistics, JobStatistics.LoadStatistics, JobStatistics.QueryStatistics, JobStatistics.ScriptStatistics
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getBillingTier()
Returns the billing tier for the job.
|
Boolean |
getCacheHit()
Returns whether the query result was fetched from the query cache.
|
String |
getDdlOperationPerformed()
[BETA] For DDL queries, returns the operation applied to the DDL target table.
|
RoutineId |
getDdlTargetRoutine()
[BETA] For DDL queries, returns the RoutineId of the targeted routine.
|
TableId |
getDdlTargetTable()
[BETA] For DDL queries, returns the TableID of the targeted table.
|
Long |
getEstimatedBytesProcessed()
The original estimate of bytes processed for the job.
|
Long |
getNumDmlAffectedRows()
The number of rows affected by a DML statement.
|
List<QueryStage> |
getQueryPlan()
Returns the query plan as a list of stages or
null if a query plan is not available. |
List<TableId> |
getReferencedTables()
Referenced tables for the job.
|
Schema |
getSchema()
Returns the schema for the query result.
|
JobStatistics.QueryStatistics.StatementType |
getStatementType()
[BETA] The type of query statement, if valid.
|
List<TimelineSample> |
getTimeline()
Return the timeline for the query, as a list of timeline samples.
|
Long |
getTotalBytesBilled()
Returns the total number of bytes billed for the job.
|
Long |
getTotalBytesProcessed()
Returns the total number of bytes processed by the job.
|
Long |
getTotalPartitionsProcessed()
Total number of partitions processed from all partitioned tables referenced in the job.
|
Long |
getTotalSlotMs()
Returns the slot-milliseconds consumed by the query.
|
int |
hashCode() |
getCreationTime, getEndTime, getNumChildJobs, getParentJobId, getScriptStatistics, getStartTime, toString
public Integer getBillingTier()
public Boolean getCacheHit()
public String getDdlOperationPerformed()
public TableId getDdlTargetTable()
public RoutineId getDdlTargetRoutine()
public Long getEstimatedBytesProcessed()
public Long getNumDmlAffectedRows()
public List<TableId> getReferencedTables()
public JobStatistics.QueryStatistics.StatementType getStatementType()
public Long getTotalBytesBilled()
public Long getTotalBytesProcessed()
public Long getTotalPartitionsProcessed()
public Long getTotalSlotMs()
public List<QueryStage> getQueryPlan()
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.public List<TimelineSample> getTimeline()
public Schema getSchema()
Copyright © 2019 Google LLC. All rights reserved.