Class: Google::Apis::BigqueryV2::JobStatistics2

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JobStatistics2

Returns a new instance of JobStatistics2



2040
2041
2042
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2040

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#billing_tierFixnum

[Output-only] Billing tier for the job. Corresponds to the JSON property billingTier

Returns:

  • (Fixnum)


1951
1952
1953
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1951

def billing_tier
  @billing_tier
end

#cache_hitBoolean Also known as: cache_hit?

[Output-only] Whether the query result was fetched from the query cache. Corresponds to the JSON property cacheHit

Returns:

  • (Boolean)


1956
1957
1958
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1956

def cache_hit
  @cache_hit
end

#ddl_operation_performedString

[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

Returns:

  • (String)


1969
1970
1971
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1969

def ddl_operation_performed
  @ddl_operation_performed
end

#ddl_target_tableGoogle::Apis::BigqueryV2::TableReference

[Output-only, Experimental] The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries. Corresponds to the JSON property ddlTargetTable



1975
1976
1977
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1975

def ddl_target_table
  @ddl_target_table
end

#estimated_bytes_processedFixnum

[Output-only] The original estimate of bytes processed for the job. Corresponds to the JSON property estimatedBytesProcessed

Returns:

  • (Fixnum)


1980
1981
1982
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1980

def estimated_bytes_processed
  @estimated_bytes_processed
end

#num_dml_affected_rowsFixnum

[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

Returns:

  • (Fixnum)


1986
1987
1988
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1986

def num_dml_affected_rows
  @num_dml_affected_rows
end

#query_planArray<Google::Apis::BigqueryV2::ExplainQueryStage>

[Output-only] Describes execution plan for the query. Corresponds to the JSON property queryPlan



1991
1992
1993
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1991

def query_plan
  @query_plan
end

#referenced_tablesArray<Google::Apis::BigqueryV2::TableReference>

[Output-only, Experimental] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. Corresponds to the JSON property referencedTables



1997
1998
1999
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1997

def referenced_tables
  @referenced_tables
end

#schemaGoogle::Apis::BigqueryV2::TableSchema

[Output-only, Experimental] The schema of the results. Present only for successful dry run of non-legacy SQL queries. Corresponds to the JSON property schema



2003
2004
2005
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2003

def schema
  @schema
end

#statement_typeString

[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

Returns:

  • (String)


2017
2018
2019
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2017

def statement_type
  @statement_type
end

#total_bytes_billedFixnum

[Output-only] Total bytes billed for the job. Corresponds to the JSON property totalBytesBilled

Returns:

  • (Fixnum)


2022
2023
2024
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2022

def total_bytes_billed
  @total_bytes_billed
end

#total_bytes_processedFixnum

[Output-only] Total bytes processed for the job. Corresponds to the JSON property totalBytesProcessed

Returns:

  • (Fixnum)


2027
2028
2029
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2027

def total_bytes_processed
  @total_bytes_processed
end

#total_slot_msFixnum

[Output-only] Slot-milliseconds for the job. Corresponds to the JSON property totalSlotMs

Returns:

  • (Fixnum)


2032
2033
2034
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2032

def total_slot_ms
  @total_slot_ms
end

#undeclared_query_parametersArray<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



2038
2039
2040
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2038

def undeclared_query_parameters
  @undeclared_query_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2045

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)
  @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_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