Package com.google.cloud.bigquery
Class JobStatistics.QueryStatistics
java.lang.Object
com.google.cloud.bigquery.JobStatistics
com.google.cloud.bigquery.JobStatistics.QueryStatistics
- All Implemented Interfaces:
Serializable
- Enclosing class:
- JobStatistics
A Google BigQuery Query Job statistics.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
StatementType represents possible types of SQL statements reported as part of the QueryStatistics of a BigQuery job.Nested classes/interfaces inherited from class com.google.cloud.bigquery.JobStatistics
JobStatistics.CopyStatistics, JobStatistics.ExtractStatistics, JobStatistics.LoadStatistics, JobStatistics.QueryStatistics, JobStatistics.ReservationUsage, JobStatistics.ScriptStatistics, JobStatistics.SessionInfo, JobStatistics.TransactionInfo
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returns query statistics specific to the use of BI Engine.Returns the billing tier for the job.Returns whether the query result was fetched from the query cache.[BETA] For DDL queries, returns the operation applied to the DDL target table.[BETA] For DDL queries, returns the RoutineId of the targeted routine.[BETA] For DDL queries, returns the TableID of the targeted table.Detailed statistics for DML statements.The original estimate of bytes processed for the job.Statistics for metadata caching in BigLake tables.The number of rows affected by a DML statement.List<com.google.api.services.bigquery.model.QueryParameter>
Standard SQL only: Returns a list of undeclared query parameters detected during a dry run validation.Returns the query plan as a list of stages ornull
if a query plan is not available.Referenced tables for the job.Returns the schema for the query result.Statistics for a search query.[BETA] The type of query statement, if valid.Return the timeline for the query, as a list of timeline samples.Returns the total number of bytes billed for the job.Returns the total number of bytes processed by the job.Total number of partitions processed from all partitioned tables referenced in the job.Returns the slot-milliseconds consumed by the query.final int
hashCode()
Methods inherited from class com.google.cloud.bigquery.JobStatistics
getCreationTime, getEndTime, getNumChildJobs, getParentJobId, getReservationUsage, getScriptStatistics, getSessionInfo, getStartTime, getTransactionInfo, toString
-
Method Details
-
getBiEngineStats
Returns query statistics specific to the use of BI Engine. -
getBillingTier
Returns the billing tier for the job. -
getCacheHit
Returns whether the query result was fetched from the query cache.- See Also:
-
getDdlOperationPerformed
[BETA] For DDL queries, returns the operation applied to the DDL target table. -
getDdlTargetTable
[BETA] For DDL queries, returns the TableID of the targeted table. -
getDdlTargetRoutine
[BETA] For DDL queries, returns the RoutineId of the targeted routine. -
getEstimatedBytesProcessed
The original estimate of bytes processed for the job. -
getNumDmlAffectedRows
The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. -
getDmlStats
Detailed statistics for DML statements. -
getReferencedTables
Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. -
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 -
getTotalBytesBilled
Returns the total number of bytes billed for the job. -
getTotalBytesProcessed
Returns the total number of bytes processed by the job. -
getTotalPartitionsProcessed
Total number of partitions processed from all partitioned tables referenced in the job. -
getTotalSlotMs
Returns the slot-milliseconds consumed by the query. -
getQueryPlan
Returns the query plan as a list of stages ornull
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:
-
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. -
getSchema
Returns the schema for the query result. Present only for successful dry run of non-legacy SQL queries. -
getSearchStats
Statistics for a search query. Populated as part of JobStatistics2. Provides information about how indexes are used in search queries. If an index is not used, you can retrieve debugging information about the reason why. -
getMetadataCacheStats
Statistics for metadata caching in BigLake tables. -
getQueryParameters
Standard SQL only: Returns a list of undeclared query parameters detected during a dry run validation. -
equals
-
hashCode
public final int hashCode()
-