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



1851
1852
1853
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1851

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)


1799
1800
1801
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1799

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)


1804
1805
1806
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1804

def cache_hit
  @cache_hit
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)


1811
1812
1813
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1811

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



1816
1817
1818
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1816

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



1822
1823
1824
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1822

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



1828
1829
1830
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1828

def schema
  @schema
end

#statement_typeString

[Output-only, Experimental] The type of query statement, if valid. Corresponds to the JSON property statementType

Returns:

  • (String)


1833
1834
1835
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1833

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)


1838
1839
1840
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1838

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)


1843
1844
1845
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1843

def total_bytes_processed
  @total_bytes_processed
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



1849
1850
1851
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1849

def undeclared_query_parameters
  @undeclared_query_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1856

def update!(**args)
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
  @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)
  @undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
end