Class JobStatistics.QueryStatistics (2.48.1)

publicstaticclass JobStatistics.QueryStatisticsextendsJobStatistics

A Google BigQuery Query Job statistics.

Inheritance

Object > JobStatistics > JobStatistics.QueryStatistics

Methods

equals(Object obj)

publicfinalbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBiEngineStats()

publicBiEngineStatsgetBiEngineStats()

Returns query statistics specific to the use of BI Engine.

Returns
Type Description
BiEngineStats

getBillingTier()

publicIntegergetBillingTier()

Returns the billing tier for the job.

Returns
Type Description
Integer

getCacheHit()

publicBooleangetCacheHit()

Returns whether the query result was fetched from the query cache. See Also: Query Caching

Returns
Type Description
Boolean

getDdlOperationPerformed()

publicStringgetDdlOperationPerformed()

[BETA] For DDL queries, returns the operation applied to the DDL target table.

Returns
Type Description
String

getDdlTargetRoutine()

publicRoutineIdgetDdlTargetRoutine()

[BETA] For DDL queries, returns the RoutineId of the targeted routine.

Returns
Type Description
RoutineId

getDdlTargetTable()

publicTableIdgetDdlTargetTable()

[BETA] For DDL queries, returns the TableID of the targeted table.

Returns
Type Description
TableId

getDmlStats()

publicDmlStatsgetDmlStats()

Detailed statistics for DML statements.

Returns
Type Description
DmlStats

getEstimatedBytesProcessed()

publicLonggetEstimatedBytesProcessed()

The original estimate of bytes processed for the job.

Returns
Type Description
Long

getExportDataStats()

publicJobStatistics.QueryStatistics.ExportDataStatsgetExportDataStats()

Detailed statistics for EXPORT DATA statement.

Returns
Type Description
JobStatistics.QueryStatistics.ExportDataStats

getMetadataCacheStats()

publicMetadataCacheStatsgetMetadataCacheStats()

Statistics for metadata caching in BigLake tables.

Returns
Type Description
MetadataCacheStats

getNumDmlAffectedRows()

publicLonggetNumDmlAffectedRows()

The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.

Returns
Type Description
Long

getQueryParameters()

publicList<QueryParameter>getQueryParameters()

Standard SQL only: Returns a list of undeclared query parameters detected during a dry run validation.

Returns
Type Description
List<com.google.api.services.bigquery.model.QueryParameter>

getQueryPlan()

publicList<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
Type Description
List<QueryStage>

getReferencedTables()

publicList<TableId>getReferencedTables()

Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list.

Returns
Type Description
List<TableId>

getSchema()

publicSchemagetSchema()

Returns the schema for the query result. Present only for successful dry run of non-legacy SQL queries.

Returns
Type Description
Schema

getSearchStats()

publicSearchStatsgetSearchStats()

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.

Returns
Type Description
SearchStats

getStatementType()

publicJobStatistics.QueryStatistics.StatementTypegetStatementType()

[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
Type Description
JobStatistics.QueryStatistics.StatementType

getTimeline()

publicList<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
Type Description
List<TimelineSample>

getTotalBytesBilled()

publicLonggetTotalBytesBilled()

Returns the total number of bytes billed for the job.

Returns
Type Description
Long

getTotalBytesProcessed()

publicLonggetTotalBytesProcessed()

Returns the total number of bytes processed by the job.

Returns
Type Description
Long

getTotalPartitionsProcessed()

publicLonggetTotalPartitionsProcessed()

Total number of partitions processed from all partitioned tables referenced in the job.

Returns
Type Description
Long

getUseReadApi()

publicBooleangetUseReadApi()

Returns whether the query result is read from the high throughput ReadAPI.

Returns
Type Description
Boolean

hashCode()

publicfinalinthashCode()
Returns
Type Description
int
Overrides

setUseReadApi(Boolean useReadApi)

publicvoidsetUseReadApi(BooleanuseReadApi)

Sets internal state to reflect the use of the high throughput ReadAPI.

Parameter
Name Description
useReadApi Boolean

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.