Class: Google::Apis::BigqueryV2::JobStatistics2
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::BigqueryV2::JobStatistics2
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
 generated/google/apis/bigquery_v2/representations.rb,
 generated/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #billing_tier  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] Billing tier for the job. 
- 
  
    
      #cache_hit  ⇒ Boolean 
    
    
      (also: #cache_hit?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] Whether the query result was fetched from the query cache. 
- 
  
    
      #ddl_operation_performed  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only, Experimental] The DDL operation performed, possibly dependent on the pre-existence of the DDL target. 
- 
  
    
      #ddl_target_table  ⇒ Google::Apis::BigqueryV2::TableReference 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only, Experimental] The DDL target table. 
- 
  
    
      #estimated_bytes_processed  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] The original estimate of bytes processed for the job. 
- 
  
    
      #num_dml_affected_rows  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] The number of rows affected by a DML statement. 
- 
  
    
      #query_plan  ⇒ Array<Google::Apis::BigqueryV2::ExplainQueryStage> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] Describes execution plan for the query. 
- 
  
    
      #referenced_tables  ⇒ Array<Google::Apis::BigqueryV2::TableReference> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] Referenced tables for the job. 
- 
  
    
      #schema  ⇒ Google::Apis::BigqueryV2::TableSchema 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] The schema of the results. 
- 
  
    
      #statement_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only, Experimental] The type of query statement, if valid. 
- 
  
    
      #timeline  ⇒ Array<Google::Apis::BigqueryV2::QueryTimelineSample> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] [Experimental] Describes a timeline of job execution. 
- 
  
    
      #total_bytes_billed  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] Total bytes billed for the job. 
- 
  
    
      #total_bytes_processed  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] Total bytes processed for the job. 
- 
  
    
      #total_partitions_processed  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] Total number of partitions processed from all partitioned tables referenced in the job. 
- 
  
    
      #total_slot_ms  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only] Slot-milliseconds for the job. 
- 
  
    
      #undeclared_query_parameters  ⇒ Array<Google::Apis::BigqueryV2::QueryParameter> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output-only, Experimental] Standard SQL only: list of undeclared query parameters detected during a dry run validation. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ JobStatistics2 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of JobStatistics2. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ JobStatistics2
Returns a new instance of JobStatistics2
| 2176 2177 2178 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2176 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#billing_tier ⇒ Fixnum
[Output-only] Billing tier for the job.
Corresponds to the JSON property billingTier
| 2076 2077 2078 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2076 def billing_tier @billing_tier end | 
#cache_hit ⇒ Boolean Also known as: cache_hit?
[Output-only] Whether the query result was fetched from the query cache.
Corresponds to the JSON property cacheHit
| 2081 2082 2083 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2081 def cache_hit @cache_hit end | 
#ddl_operation_performed ⇒ String
[Output-only, Experimental] The DDL operation performed, possibly dependent on
the pre-existence of the DDL target. Possible values (new values might be
added in the future): "CREATE": The query created the DDL target. "SKIP": No-
op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table
already exists, or the query is DROP TABLE IF EXISTS while the table does not
exist. "REPLACE": The query replaced the DDL target. Example case: the query
is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query
deleted the DDL target.
Corresponds to the JSON property ddlOperationPerformed
| 2094 2095 2096 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2094 def ddl_operation_performed @ddl_operation_performed end | 
#ddl_target_table ⇒ Google::Apis::BigqueryV2::TableReference
[Output-only, Experimental] The DDL target table. Present only for CREATE/DROP
TABLE/VIEW queries.
Corresponds to the JSON property ddlTargetTable
| 2100 2101 2102 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2100 def ddl_target_table @ddl_target_table end | 
#estimated_bytes_processed ⇒ Fixnum
[Output-only] The original estimate of bytes processed for the job.
Corresponds to the JSON property estimatedBytesProcessed
| 2105 2106 2107 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2105 def estimated_bytes_processed @estimated_bytes_processed end | 
#num_dml_affected_rows ⇒ Fixnum
[Output-only] The number of rows affected by a DML statement. Present only for
DML statements INSERT, UPDATE or DELETE.
Corresponds to the JSON property numDmlAffectedRows
| 2111 2112 2113 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2111 def num_dml_affected_rows @num_dml_affected_rows end | 
#query_plan ⇒ Array<Google::Apis::BigqueryV2::ExplainQueryStage>
[Output-only] Describes execution plan for the query.
Corresponds to the JSON property queryPlan
| 2116 2117 2118 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2116 def query_plan @query_plan end | 
#referenced_tables ⇒ Array<Google::Apis::BigqueryV2::TableReference>
[Output-only] Referenced tables for the job. Queries that reference more than
50 tables will not have a complete list.
Corresponds to the JSON property referencedTables
| 2122 2123 2124 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2122 def referenced_tables @referenced_tables end | 
#schema ⇒ Google::Apis::BigqueryV2::TableSchema
[Output-only] The schema of the results. Present only for successful dry run
of non-legacy SQL queries.
Corresponds to the JSON property schema
| 2128 2129 2130 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2128 def schema @schema end | 
#statement_type ⇒ String
[Output-only, Experimental] The type of query statement, if valid. Possible
values (new values might be added in the future): "SELECT": SELECT query. "
INSERT": INSERT query; see https://cloud.google.com/bigquery/docs/reference/
standard-sql/data-manipulation-language "UPDATE": UPDATE query; see https://
cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-
language "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/
reference/standard-sql/data-manipulation-language "CREATE_TABLE": CREATE [OR
REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE]
TABLE ... AS SELECT ... "DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE
[OR REPLACE] VIEW ... AS SELECT ... "DROP_VIEW": DROP VIEW query.
Corresponds to the JSON property statementType
| 2142 2143 2144 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2142 def statement_type @statement_type end | 
#timeline ⇒ Array<Google::Apis::BigqueryV2::QueryTimelineSample>
[Output-only] [Experimental] Describes a timeline of job execution.
Corresponds to the JSON property timeline
| 2147 2148 2149 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2147 def timeline @timeline end | 
#total_bytes_billed ⇒ Fixnum
[Output-only] Total bytes billed for the job.
Corresponds to the JSON property totalBytesBilled
| 2152 2153 2154 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2152 def total_bytes_billed @total_bytes_billed end | 
#total_bytes_processed ⇒ Fixnum
[Output-only] Total bytes processed for the job.
Corresponds to the JSON property totalBytesProcessed
| 2157 2158 2159 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2157 def total_bytes_processed @total_bytes_processed end | 
#total_partitions_processed ⇒ Fixnum
[Output-only] Total number of partitions processed from all partitioned tables
referenced in the job.
Corresponds to the JSON property totalPartitionsProcessed
| 2163 2164 2165 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2163 def total_partitions_processed @total_partitions_processed end | 
#total_slot_ms ⇒ Fixnum
[Output-only] Slot-milliseconds for the job.
Corresponds to the JSON property totalSlotMs
| 2168 2169 2170 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2168 def total_slot_ms @total_slot_ms end | 
#undeclared_query_parameters ⇒ Array<Google::Apis::BigqueryV2::QueryParameter>
[Output-only, Experimental] Standard SQL only: list of undeclared query
parameters detected during a dry run validation.
Corresponds to the JSON property undeclaredQueryParameters
| 2174 2175 2176 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2174 def undeclared_query_parameters @undeclared_query_parameters end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 | # File 'generated/google/apis/bigquery_v2/classes.rb', line 2181 def update!(**args) @billing_tier = args[:billing_tier] if args.key?(:billing_tier) @cache_hit = args[:cache_hit] if args.key?(:cache_hit) @ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed) @ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table) @estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed) @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows) @query_plan = args[:query_plan] if args.key?(:query_plan) @referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables) @schema = args[:schema] if args.key?(:schema) @statement_type = args[:statement_type] if args.key?(:statement_type) @timeline = args[:timeline] if args.key?(:timeline) @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed) @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) @total_partitions_processed = args[:total_partitions_processed] if args.key?(:total_partitions_processed) @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms) @undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters) end |