target.apidocs.com.google.api.services.bigquery.model.JobStatistics2.html Maven / Gradle / Ivy
JobStatistics2 (BigQuery API v2-rev20240727-2.0.0)
com.google.api.services.bigquery.model
Class JobStatistics2
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.bigquery.model.JobStatistics2
-
public final class JobStatistics2
extends com.google.api.client.json.GenericJson
Statistics for a query job.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the BigQuery API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
static class
JobStatistics2.ReservationUsage
Job resource usage breakdown by reservation.
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
JobStatistics2()
-
Method Summary
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getBiEngineStatistics
public BiEngineStatistics getBiEngineStatistics()
Output only. BI Engine specific Statistics.
- Returns:
- value or
null
for none
-
setBiEngineStatistics
public JobStatistics2 setBiEngineStatistics(BiEngineStatistics biEngineStatistics)
Output only. BI Engine specific Statistics.
- Parameters:
biEngineStatistics
- biEngineStatistics or null
for none
-
getBillingTier
public Integer getBillingTier()
Output only. Billing tier for the job. This is a BigQuery-specific concept which is not related
to the Google Cloud notion of "free tier". The value here is a measure of the query's resource
consumption relative to the amount of data scanned. For on-demand queries, the limit is 100,
and all queries within this limit are billed at the standard on-demand rates. On-demand queries
that exceed this limit will fail with a billingTierLimitExceeded error.
- Returns:
- value or
null
for none
-
setBillingTier
public JobStatistics2 setBillingTier(Integer billingTier)
Output only. Billing tier for the job. This is a BigQuery-specific concept which is not related
to the Google Cloud notion of "free tier". The value here is a measure of the query's resource
consumption relative to the amount of data scanned. For on-demand queries, the limit is 100,
and all queries within this limit are billed at the standard on-demand rates. On-demand queries
that exceed this limit will fail with a billingTierLimitExceeded error.
- Parameters:
billingTier
- billingTier or null
for none
-
getCacheHit
public Boolean getCacheHit()
Output only. Whether the query result was fetched from the query cache.
- Returns:
- value or
null
for none
-
setCacheHit
public JobStatistics2 setCacheHit(Boolean cacheHit)
Output only. Whether the query result was fetched from the query cache.
- Parameters:
cacheHit
- cacheHit or null
for none
-
getDclTargetDataset
public DatasetReference getDclTargetDataset()
Output only. Referenced dataset for DCL statement.
- Returns:
- value or
null
for none
-
setDclTargetDataset
public JobStatistics2 setDclTargetDataset(DatasetReference dclTargetDataset)
Output only. Referenced dataset for DCL statement.
- Parameters:
dclTargetDataset
- dclTargetDataset or null
for none
-
getDclTargetTable
public TableReference getDclTargetTable()
Output only. Referenced table for DCL statement.
- Returns:
- value or
null
for none
-
setDclTargetTable
public JobStatistics2 setDclTargetTable(TableReference dclTargetTable)
Output only. Referenced table for DCL statement.
- Parameters:
dclTargetTable
- dclTargetTable or null
for none
-
getDclTargetView
public TableReference getDclTargetView()
Output only. Referenced view for DCL statement.
- Returns:
- value or
null
for none
-
setDclTargetView
public JobStatistics2 setDclTargetView(TableReference dclTargetView)
Output only. Referenced view for DCL statement.
- Parameters:
dclTargetView
- dclTargetView or null
for none
-
getDdlAffectedRowAccessPolicyCount
public Long getDdlAffectedRowAccessPolicyCount()
Output only. The number of row access policies affected by a DDL statement. Present only for
DROP ALL ROW ACCESS POLICIES queries.
- Returns:
- value or
null
for none
-
setDdlAffectedRowAccessPolicyCount
public JobStatistics2 setDdlAffectedRowAccessPolicyCount(Long ddlAffectedRowAccessPolicyCount)
Output only. The number of row access policies affected by a DDL statement. Present only for
DROP ALL ROW ACCESS POLICIES queries.
- Parameters:
ddlAffectedRowAccessPolicyCount
- ddlAffectedRowAccessPolicyCount or null
for none
-
getDdlDestinationTable
public TableReference getDdlDestinationTable()
Output only. The table after rename. Present only for ALTER TABLE RENAME TO query.
- Returns:
- value or
null
for none
-
setDdlDestinationTable
public JobStatistics2 setDdlDestinationTable(TableReference ddlDestinationTable)
Output only. The table after rename. Present only for ALTER TABLE RENAME TO query.
- Parameters:
ddlDestinationTable
- ddlDestinationTable or null
for none
-
getDdlOperationPerformed
public String getDdlOperationPerformed()
Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL
target.
- Returns:
- value or
null
for none
-
setDdlOperationPerformed
public JobStatistics2 setDdlOperationPerformed(String ddlOperationPerformed)
Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL
target.
- Parameters:
ddlOperationPerformed
- ddlOperationPerformed or null
for none
-
getDdlTargetDataset
public DatasetReference getDdlTargetDataset()
Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA(dataset)
queries.
- Returns:
- value or
null
for none
-
setDdlTargetDataset
public JobStatistics2 setDdlTargetDataset(DatasetReference ddlTargetDataset)
Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA(dataset)
queries.
- Parameters:
ddlTargetDataset
- ddlTargetDataset or null
for none
-
getDdlTargetRoutine
public RoutineReference getDdlTargetRoutine()
Output only. [Beta] The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
queries.
- Returns:
- value or
null
for none
-
setDdlTargetRoutine
public JobStatistics2 setDdlTargetRoutine(RoutineReference ddlTargetRoutine)
Output only. [Beta] The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
queries.
- Parameters:
ddlTargetRoutine
- ddlTargetRoutine or null
for none
-
getDdlTargetRowAccessPolicy
public RowAccessPolicyReference getDdlTargetRowAccessPolicy()
Output only. The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY
queries.
- Returns:
- value or
null
for none
-
setDdlTargetRowAccessPolicy
public JobStatistics2 setDdlTargetRowAccessPolicy(RowAccessPolicyReference ddlTargetRowAccessPolicy)
Output only. The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY
queries.
- Parameters:
ddlTargetRowAccessPolicy
- ddlTargetRowAccessPolicy or null
for none
-
getDdlTargetTable
public TableReference getDdlTargetTable()
Output only. The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW
ACCESS POLICIES queries.
- Returns:
- value or
null
for none
-
setDdlTargetTable
public JobStatistics2 setDdlTargetTable(TableReference ddlTargetTable)
Output only. The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW
ACCESS POLICIES queries.
- Parameters:
ddlTargetTable
- ddlTargetTable or null
for none
-
getDmlStats
public DmlStatistics getDmlStats()
Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
- Returns:
- value or
null
for none
-
setDmlStats
public JobStatistics2 setDmlStats(DmlStatistics dmlStats)
Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
- Parameters:
dmlStats
- dmlStats or null
for none
-
getEstimatedBytesProcessed
public Long getEstimatedBytesProcessed()
Output only. The original estimate of bytes processed for the job.
- Returns:
- value or
null
for none
-
setEstimatedBytesProcessed
public JobStatistics2 setEstimatedBytesProcessed(Long estimatedBytesProcessed)
Output only. The original estimate of bytes processed for the job.
- Parameters:
estimatedBytesProcessed
- estimatedBytesProcessed or null
for none
-
getExportDataStatistics
public ExportDataStatistics getExportDataStatistics()
Output only. Stats for EXPORT DATA statement.
- Returns:
- value or
null
for none
-
setExportDataStatistics
public JobStatistics2 setExportDataStatistics(ExportDataStatistics exportDataStatistics)
Output only. Stats for EXPORT DATA statement.
- Parameters:
exportDataStatistics
- exportDataStatistics or null
for none
-
getExternalServiceCosts
public List<ExternalServiceCost> getExternalServiceCosts()
Output only. Job cost breakdown as bigquery internal cost and external service costs.
- Returns:
- value or
null
for none
-
setExternalServiceCosts
public JobStatistics2 setExternalServiceCosts(List<ExternalServiceCost> externalServiceCosts)
Output only. Job cost breakdown as bigquery internal cost and external service costs.
- Parameters:
externalServiceCosts
- externalServiceCosts or null
for none
-
getLoadQueryStatistics
public LoadQueryStatistics getLoadQueryStatistics()
Output only. Statistics for a LOAD query.
- Returns:
- value or
null
for none
-
setLoadQueryStatistics
public JobStatistics2 setLoadQueryStatistics(LoadQueryStatistics loadQueryStatistics)
Output only. Statistics for a LOAD query.
- Parameters:
loadQueryStatistics
- loadQueryStatistics or null
for none
-
getMaterializedViewStatistics
public MaterializedViewStatistics getMaterializedViewStatistics()
Output only. Statistics of materialized views of a query job.
- Returns:
- value or
null
for none
-
setMaterializedViewStatistics
public JobStatistics2 setMaterializedViewStatistics(MaterializedViewStatistics materializedViewStatistics)
Output only. Statistics of materialized views of a query job.
- Parameters:
materializedViewStatistics
- materializedViewStatistics or null
for none
-
getMetadataCacheStatistics
public MetadataCacheStatistics getMetadataCacheStatistics()
Output only. Statistics of metadata cache usage in a query for BigLake tables.
- Returns:
- value or
null
for none
-
setMetadataCacheStatistics
public JobStatistics2 setMetadataCacheStatistics(MetadataCacheStatistics metadataCacheStatistics)
Output only. Statistics of metadata cache usage in a query for BigLake tables.
- Parameters:
metadataCacheStatistics
- metadataCacheStatistics or null
for none
-
getMlStatistics
public MlStatistics getMlStatistics()
Output only. Statistics of a BigQuery ML training job.
- Returns:
- value or
null
for none
-
setMlStatistics
public JobStatistics2 setMlStatistics(MlStatistics mlStatistics)
Output only. Statistics of a BigQuery ML training job.
- Parameters:
mlStatistics
- mlStatistics or null
for none
-
getModelTraining
public BigQueryModelTraining getModelTraining()
Deprecated.
- Returns:
- value or
null
for none
-
setModelTraining
public JobStatistics2 setModelTraining(BigQueryModelTraining modelTraining)
Deprecated.
- Parameters:
modelTraining
- modelTraining or null
for none
-
getModelTrainingCurrentIteration
public Integer getModelTrainingCurrentIteration()
Deprecated.
- Returns:
- value or
null
for none
-
setModelTrainingCurrentIteration
public JobStatistics2 setModelTrainingCurrentIteration(Integer modelTrainingCurrentIteration)
Deprecated.
- Parameters:
modelTrainingCurrentIteration
- modelTrainingCurrentIteration or null
for none
-
getModelTrainingExpectedTotalIteration
public Long getModelTrainingExpectedTotalIteration()
Deprecated.
- Returns:
- value or
null
for none
-
setModelTrainingExpectedTotalIteration
public JobStatistics2 setModelTrainingExpectedTotalIteration(Long modelTrainingExpectedTotalIteration)
Deprecated.
- Parameters:
modelTrainingExpectedTotalIteration
- modelTrainingExpectedTotalIteration or null
for none
-
getNumDmlAffectedRows
public Long getNumDmlAffectedRows()
Output only. The number of rows affected by a DML statement. Present only for DML statements
INSERT, UPDATE or DELETE.
- Returns:
- value or
null
for none
-
setNumDmlAffectedRows
public JobStatistics2 setNumDmlAffectedRows(Long numDmlAffectedRows)
Output only. The number of rows affected by a DML statement. Present only for DML statements
INSERT, UPDATE or DELETE.
- Parameters:
numDmlAffectedRows
- numDmlAffectedRows or null
for none
-
getPerformanceInsights
public PerformanceInsights getPerformanceInsights()
Output only. Performance insights.
- Returns:
- value or
null
for none
-
setPerformanceInsights
public JobStatistics2 setPerformanceInsights(PerformanceInsights performanceInsights)
Output only. Performance insights.
- Parameters:
performanceInsights
- performanceInsights or null
for none
-
getQueryInfo
public QueryInfo getQueryInfo()
Output only. Query optimization information for a QUERY job.
- Returns:
- value or
null
for none
-
setQueryInfo
public JobStatistics2 setQueryInfo(QueryInfo queryInfo)
Output only. Query optimization information for a QUERY job.
- Parameters:
queryInfo
- queryInfo or null
for none
-
getQueryPlan
public List<ExplainQueryStage> getQueryPlan()
Output only. Describes execution plan for the query.
- Returns:
- value or
null
for none
-
setQueryPlan
public JobStatistics2 setQueryPlan(List<ExplainQueryStage> queryPlan)
Output only. Describes execution plan for the query.
- Parameters:
queryPlan
- queryPlan or null
for none
-
getReferencedRoutines
public List<RoutineReference> getReferencedRoutines()
Output only. Referenced routines for the job.
- Returns:
- value or
null
for none
-
setReferencedRoutines
public JobStatistics2 setReferencedRoutines(List<RoutineReference> referencedRoutines)
Output only. Referenced routines for the job.
- Parameters:
referencedRoutines
- referencedRoutines or null
for none
-
getReferencedTables
public List<TableReference> getReferencedTables()
Output only. Referenced tables for the job. Queries that reference more than 50 tables will not
have a complete list.
- Returns:
- value or
null
for none
-
setReferencedTables
public JobStatistics2 setReferencedTables(List<TableReference> referencedTables)
Output only. Referenced tables for the job. Queries that reference more than 50 tables will not
have a complete list.
- Parameters:
referencedTables
- referencedTables or null
for none
-
getReservationUsage
public List<JobStatistics2.ReservationUsage> getReservationUsage()
Output only. Job resource usage breakdown by reservation. This field reported misleading
information and will no longer be populated.
- Returns:
- value or
null
for none
-
setReservationUsage
public JobStatistics2 setReservationUsage(List<JobStatistics2.ReservationUsage> reservationUsage)
Output only. Job resource usage breakdown by reservation. This field reported misleading
information and will no longer be populated.
- Parameters:
reservationUsage
- reservationUsage or null
for none
-
getSchema
public TableSchema getSchema()
Output only. The schema of the results. Present only for successful dry run of non-legacy SQL
queries.
- Returns:
- value or
null
for none
-
setSchema
public JobStatistics2 setSchema(TableSchema schema)
Output only. The schema of the results. Present only for successful dry run of non-legacy SQL
queries.
- Parameters:
schema
- schema or null
for none
-
getSearchStatistics
public SearchStatistics getSearchStatistics()
Output only. Search query specific statistics.
- Returns:
- value or
null
for none
-
setSearchStatistics
public JobStatistics2 setSearchStatistics(SearchStatistics searchStatistics)
Output only. Search query specific statistics.
- Parameters:
searchStatistics
- searchStatistics or null
for none
-
getSparkStatistics
public SparkStatistics getSparkStatistics()
Output only. Statistics of a Spark procedure job.
- Returns:
- value or
null
for none
-
setSparkStatistics
public JobStatistics2 setSparkStatistics(SparkStatistics sparkStatistics)
Output only. Statistics of a Spark procedure job.
- Parameters:
sparkStatistics
- sparkStatistics or null
for none
-
getStatementType
public String getStatementType()
Output only. The type of query statement, if valid. Possible values: * `SELECT`:
[`SELECT`](/bigquery/docs/reference/standard-sql/query-syntax#select_list) statement. *
`ASSERT`: [`ASSERT`](/bigquery/docs/reference/standard-sql/debugging-statements#assert)
statement. * `INSERT`: [`INSERT`](/bigquery/docs/reference/standard-sql/dml-
syntax#insert_statement) statement. * `UPDATE`: [`UPDATE`](/bigquery/docs/reference/standard-
sql/query-syntax#update_statement) statement. * `DELETE`:
[`DELETE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. *
`MERGE`: [`MERGE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement.
* `CREATE_TABLE`: [`CREATE TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_table_statement) statement, without `AS SELECT`. * `CREATE_TABLE_AS_SELECT`:
[`CREATE TABLE AS SELECT`](/bigquery/docs/reference/standard-sql/data-definition-
language#query_statement) statement. * `CREATE_VIEW`: [`CREATE
VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_view_statement)
statement. * `CREATE_MODEL`: [`CREATE MODEL`](/bigquery-ml/docs/reference/standard-
sql/bigqueryml-syntax-create#create_model_statement) statement. * `CREATE_MATERIALIZED_VIEW`:
[`CREATE MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_materialized_view_statement) statement. * `CREATE_FUNCTION`: [`CREATE
FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_function_statement) statement. * `CREATE_TABLE_FUNCTION`: [`CREATE TABLE
FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_table_function_statement) statement. * `CREATE_PROCEDURE`: [`CREATE
PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_procedure)
statement. * `CREATE_ROW_ACCESS_POLICY`: [`CREATE ROW ACCESS
POLICY`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_row_access_policy_statement) statement. * `CREATE_SCHEMA`: [`CREATE
SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_schema_statement) statement. * `CREATE_SNAPSHOT_TABLE`: [`CREATE SNAPSHOT
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_snapshot_table_statement) statement. * `CREATE_SEARCH_INDEX`: [`CREATE SEARCH
INDEX`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_search_index_statement) statement. * `DROP_TABLE`: [`DROP
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_statement)
statement. * `DROP_EXTERNAL_TABLE`: [`DROP EXTERNAL TABLE`](/bigquery/docs/reference/standard-
sql/data-definition-language#drop_external_table_statement) statement. * `DROP_VIEW`: [`DROP
VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_view_statement)
statement. * `DROP_MODEL`: [`DROP MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-
syntax-drop-model) statement. * `DROP_MATERIALIZED_VIEW`: [`DROP MATERIALIZED
VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
language#drop_materialized_view_statement) statement. * `DROP_FUNCTION` : [`DROP
FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
language#drop_function_statement) statement. * `DROP_TABLE_FUNCTION` : [`DROP TABLE
FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_function)
statement. * `DROP_PROCEDURE`: [`DROP PROCEDURE`](/bigquery/docs/reference/standard-sql/data-
definition-language#drop_procedure_statement) statement. * `DROP_SEARCH_INDEX`: [`DROP SEARCH
INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_search_index)
statement. * `DROP_SCHEMA`: [`DROP SCHEMA`](/bigquery/docs/reference/standard-sql/data-
definition-language#drop_schema_statement) statement. * `DROP_SNAPSHOT_TABLE`: [`DROP SNAPSHOT
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#drop_snapshot_table_statement) statement. * `DROP_ROW_ACCESS_POLICY`: [`DROP [ALL] ROW
ACCESS POLICY|POLICIES`](/bigquery/docs/reference/standard-sql/data-definition-
language#drop_row_access_policy_statement) statement. * `ALTER_TABLE`: [`ALTER
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#alter_table_set_options_statement) statement. * `ALTER_VIEW`: [`ALTER
VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
language#alter_view_set_options_statement) statement. * `ALTER_MATERIALIZED_VIEW`: [`ALTER
MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
language#alter_materialized_view_set_options_statement) statement. * `ALTER_SCHEMA`: [`ALTER
SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
language#aalter_schema_set_options_statement) statement. * `SCRIPT`:
[`SCRIPT`](/bigquery/docs/reference/standard-sql/procedural-language). * `TRUNCATE_TABLE`:
[`TRUNCATE TABLE`](/bigquery/docs/reference/standard-sql/dml-syntax#truncate_table_statement)
statement. * `CREATE_EXTERNAL_TABLE`: [`CREATE EXTERNAL
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_external_table_statement) statement. * `EXPORT_DATA`: [`EXPORT
DATA`](/bigquery/docs/reference/standard-sql/other-statements#export_data_statement) statement.
* `EXPORT_MODEL`: [`EXPORT MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-
export-model) statement. * `LOAD_DATA`: [`LOAD DATA`](/bigquery/docs/reference/standard-
sql/other-statements#load_data_statement) statement. * `CALL`:
[`CALL`](/bigquery/docs/reference/standard-sql/procedural-language#call) statement.
- Returns:
- value or
null
for none
-
setStatementType
public JobStatistics2 setStatementType(String statementType)
Output only. The type of query statement, if valid. Possible values: * `SELECT`:
[`SELECT`](/bigquery/docs/reference/standard-sql/query-syntax#select_list) statement. *
`ASSERT`: [`ASSERT`](/bigquery/docs/reference/standard-sql/debugging-statements#assert)
statement. * `INSERT`: [`INSERT`](/bigquery/docs/reference/standard-sql/dml-
syntax#insert_statement) statement. * `UPDATE`: [`UPDATE`](/bigquery/docs/reference/standard-
sql/query-syntax#update_statement) statement. * `DELETE`:
[`DELETE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. *
`MERGE`: [`MERGE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement.
* `CREATE_TABLE`: [`CREATE TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_table_statement) statement, without `AS SELECT`. * `CREATE_TABLE_AS_SELECT`:
[`CREATE TABLE AS SELECT`](/bigquery/docs/reference/standard-sql/data-definition-
language#query_statement) statement. * `CREATE_VIEW`: [`CREATE
VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_view_statement)
statement. * `CREATE_MODEL`: [`CREATE MODEL`](/bigquery-ml/docs/reference/standard-
sql/bigqueryml-syntax-create#create_model_statement) statement. * `CREATE_MATERIALIZED_VIEW`:
[`CREATE MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_materialized_view_statement) statement. * `CREATE_FUNCTION`: [`CREATE
FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_function_statement) statement. * `CREATE_TABLE_FUNCTION`: [`CREATE TABLE
FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_table_function_statement) statement. * `CREATE_PROCEDURE`: [`CREATE
PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_procedure)
statement. * `CREATE_ROW_ACCESS_POLICY`: [`CREATE ROW ACCESS
POLICY`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_row_access_policy_statement) statement. * `CREATE_SCHEMA`: [`CREATE
SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_schema_statement) statement. * `CREATE_SNAPSHOT_TABLE`: [`CREATE SNAPSHOT
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_snapshot_table_statement) statement. * `CREATE_SEARCH_INDEX`: [`CREATE SEARCH
INDEX`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_search_index_statement) statement. * `DROP_TABLE`: [`DROP
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_statement)
statement. * `DROP_EXTERNAL_TABLE`: [`DROP EXTERNAL TABLE`](/bigquery/docs/reference/standard-
sql/data-definition-language#drop_external_table_statement) statement. * `DROP_VIEW`: [`DROP
VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_view_statement)
statement. * `DROP_MODEL`: [`DROP MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-
syntax-drop-model) statement. * `DROP_MATERIALIZED_VIEW`: [`DROP MATERIALIZED
VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
language#drop_materialized_view_statement) statement. * `DROP_FUNCTION` : [`DROP
FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
language#drop_function_statement) statement. * `DROP_TABLE_FUNCTION` : [`DROP TABLE
FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_function)
statement. * `DROP_PROCEDURE`: [`DROP PROCEDURE`](/bigquery/docs/reference/standard-sql/data-
definition-language#drop_procedure_statement) statement. * `DROP_SEARCH_INDEX`: [`DROP SEARCH
INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_search_index)
statement. * `DROP_SCHEMA`: [`DROP SCHEMA`](/bigquery/docs/reference/standard-sql/data-
definition-language#drop_schema_statement) statement. * `DROP_SNAPSHOT_TABLE`: [`DROP SNAPSHOT
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#drop_snapshot_table_statement) statement. * `DROP_ROW_ACCESS_POLICY`: [`DROP [ALL] ROW
ACCESS POLICY|POLICIES`](/bigquery/docs/reference/standard-sql/data-definition-
language#drop_row_access_policy_statement) statement. * `ALTER_TABLE`: [`ALTER
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#alter_table_set_options_statement) statement. * `ALTER_VIEW`: [`ALTER
VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
language#alter_view_set_options_statement) statement. * `ALTER_MATERIALIZED_VIEW`: [`ALTER
MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
language#alter_materialized_view_set_options_statement) statement. * `ALTER_SCHEMA`: [`ALTER
SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
language#aalter_schema_set_options_statement) statement. * `SCRIPT`:
[`SCRIPT`](/bigquery/docs/reference/standard-sql/procedural-language). * `TRUNCATE_TABLE`:
[`TRUNCATE TABLE`](/bigquery/docs/reference/standard-sql/dml-syntax#truncate_table_statement)
statement. * `CREATE_EXTERNAL_TABLE`: [`CREATE EXTERNAL
TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
language#create_external_table_statement) statement. * `EXPORT_DATA`: [`EXPORT
DATA`](/bigquery/docs/reference/standard-sql/other-statements#export_data_statement) statement.
* `EXPORT_MODEL`: [`EXPORT MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-
export-model) statement. * `LOAD_DATA`: [`LOAD DATA`](/bigquery/docs/reference/standard-
sql/other-statements#load_data_statement) statement. * `CALL`:
[`CALL`](/bigquery/docs/reference/standard-sql/procedural-language#call) statement.
- Parameters:
statementType
- statementType or null
for none
-
getTimeline
public List<QueryTimelineSample> getTimeline()
Output only. Describes a timeline of job execution.
- Returns:
- value or
null
for none
-
setTimeline
public JobStatistics2 setTimeline(List<QueryTimelineSample> timeline)
Output only. Describes a timeline of job execution.
- Parameters:
timeline
- timeline or null
for none
-
getTotalBytesBilled
public Long getTotalBytesBilled()
Output only. If the project is configured to use on-demand pricing, then this field contains
the total bytes billed for the job. If the project is configured to use flat-rate pricing, then
you are not billed for bytes and this field is informational only.
- Returns:
- value or
null
for none
-
setTotalBytesBilled
public JobStatistics2 setTotalBytesBilled(Long totalBytesBilled)
Output only. If the project is configured to use on-demand pricing, then this field contains
the total bytes billed for the job. If the project is configured to use flat-rate pricing, then
you are not billed for bytes and this field is informational only.
- Parameters:
totalBytesBilled
- totalBytesBilled or null
for none
-
getTotalBytesProcessed
public Long getTotalBytesProcessed()
Output only. Total bytes processed for the job.
- Returns:
- value or
null
for none
-
setTotalBytesProcessed
public JobStatistics2 setTotalBytesProcessed(Long totalBytesProcessed)
Output only. Total bytes processed for the job.
- Parameters:
totalBytesProcessed
- totalBytesProcessed or null
for none
-
getTotalBytesProcessedAccuracy
public String getTotalBytesProcessedAccuracy()
Output only. For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the
accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown.
PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would
cost. UPPER_BOUND: estimate is upper bound of what the query would cost.
- Returns:
- value or
null
for none
-
setTotalBytesProcessedAccuracy
public JobStatistics2 setTotalBytesProcessedAccuracy(String totalBytesProcessedAccuracy)
Output only. For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the
accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown.
PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would
cost. UPPER_BOUND: estimate is upper bound of what the query would cost.
- Parameters:
totalBytesProcessedAccuracy
- totalBytesProcessedAccuracy or null
for none
-
getTotalPartitionsProcessed
public Long getTotalPartitionsProcessed()
Output only. Total number of partitions processed from all partitioned tables referenced in the
job.
- Returns:
- value or
null
for none
-
setTotalPartitionsProcessed
public JobStatistics2 setTotalPartitionsProcessed(Long totalPartitionsProcessed)
Output only. Total number of partitions processed from all partitioned tables referenced in the
job.
- Parameters:
totalPartitionsProcessed
- totalPartitionsProcessed or null
for none
-
getTotalSlotMs
public Long getTotalSlotMs()
Output only. Slot-milliseconds for the job.
- Returns:
- value or
null
for none
-
setTotalSlotMs
public JobStatistics2 setTotalSlotMs(Long totalSlotMs)
Output only. Slot-milliseconds for the job.
- Parameters:
totalSlotMs
- totalSlotMs or null
for none
-
getTransferredBytes
public Long getTransferredBytes()
Output only. Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and
CREATE TABLE AS SELECT (CTAS).
- Returns:
- value or
null
for none
-
setTransferredBytes
public JobStatistics2 setTransferredBytes(Long transferredBytes)
Output only. Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and
CREATE TABLE AS SELECT (CTAS).
- Parameters:
transferredBytes
- transferredBytes or null
for none
-
getUndeclaredQueryParameters
public List<QueryParameter> getUndeclaredQueryParameters()
Output only. GoogleSQL only: list of undeclared query parameters detected during a dry run
validation.
- Returns:
- value or
null
for none
-
setUndeclaredQueryParameters
public JobStatistics2 setUndeclaredQueryParameters(List<QueryParameter> undeclaredQueryParameters)
Output only. GoogleSQL only: list of undeclared query parameters detected during a dry run
validation.
- Parameters:
undeclaredQueryParameters
- undeclaredQueryParameters or null
for none
-
getVectorSearchStatistics
public VectorSearchStatistics getVectorSearchStatistics()
Output only. Vector Search query specific statistics.
- Returns:
- value or
null
for none
-
setVectorSearchStatistics
public JobStatistics2 setVectorSearchStatistics(VectorSearchStatistics vectorSearchStatistics)
Output only. Vector Search query specific statistics.
- Parameters:
vectorSearchStatistics
- vectorSearchStatistics or null
for none
-
set
public JobStatistics2 set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public JobStatistics2 clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.