class Google::Cloud::Bigquery::QueryJob::Step
Represents an operation in a stage in the execution plan for the query.
@attr_reader [String] kind Machine-readable operation type. For a full
list of operation types, see [Steps metadata](https://cloud.google.com/bigquery/query-plan-explanation#steps_metadata).
@attr_reader [Array<String>] substeps Human-readable stage
descriptions.
@example
require "google/cloud/bigquery" bigquery = Google::Cloud::Bigquery.new sql = "SELECT word FROM `bigquery-public-data.samples.shakespeare`" job = bigquery.query_job sql job.wait_until_done! stages = job.query_plan stages.each do |stage| puts stage.name stage.steps.each do |step| puts step.kind puts step.substeps.inspect end end
Attributes
kind[R]
substeps[R]
Public Class Methods
from_gapi(gapi)
click to toggle source
@private New Step
from a statistics.query.queryPlan[].steps element.
# File lib/google/cloud/bigquery/query_job.rb, line 1731 def self.from_gapi gapi new gapi.kind, Array(gapi.substeps) end
new(kind, substeps)
click to toggle source
@private Creates a new Stage
instance.
# File lib/google/cloud/bigquery/query_job.rb, line 1724 def initialize kind, substeps @kind = kind @substeps = substeps end