Class: Google::Apis::BigqueryV2::ExplainQueryStage

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) ⇒ ExplainQueryStage

Returns a new instance of ExplainQueryStage.



670
671
672
# File 'generated/google/apis/bigquery_v2/classes.rb', line 670

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

Instance Attribute Details

#compute_ratio_avgFloat

Relative amount of time the average shard spent on CPU-bound tasks. Corresponds to the JSON property computeRatioAvg

Returns:

  • (Float)


607
608
609
# File 'generated/google/apis/bigquery_v2/classes.rb', line 607

def compute_ratio_avg
  @compute_ratio_avg
end

#compute_ratio_maxFloat

Relative amount of time the slowest shard spent on CPU-bound tasks. Corresponds to the JSON property computeRatioMax

Returns:

  • (Float)


612
613
614
# File 'generated/google/apis/bigquery_v2/classes.rb', line 612

def compute_ratio_max
  @compute_ratio_max
end

#idString

Unique ID for stage within plan. Corresponds to the JSON property id

Returns:

  • (String)


617
618
619
# File 'generated/google/apis/bigquery_v2/classes.rb', line 617

def id
  @id
end

#nameString

Human-readable name for stage. Corresponds to the JSON property name

Returns:

  • (String)


622
623
624
# File 'generated/google/apis/bigquery_v2/classes.rb', line 622

def name
  @name
end

#read_ratio_avgFloat

Relative amount of time the average shard spent reading input. Corresponds to the JSON property readRatioAvg

Returns:

  • (Float)


627
628
629
# File 'generated/google/apis/bigquery_v2/classes.rb', line 627

def read_ratio_avg
  @read_ratio_avg
end

#read_ratio_maxFloat

Relative amount of time the slowest shard spent reading input. Corresponds to the JSON property readRatioMax

Returns:

  • (Float)


632
633
634
# File 'generated/google/apis/bigquery_v2/classes.rb', line 632

def read_ratio_max
  @read_ratio_max
end

#records_readString

Number of records read into the stage. Corresponds to the JSON property recordsRead

Returns:

  • (String)


637
638
639
# File 'generated/google/apis/bigquery_v2/classes.rb', line 637

def records_read
  @records_read
end

#records_writtenString

Number of records written by the stage. Corresponds to the JSON property recordsWritten

Returns:

  • (String)


642
643
644
# File 'generated/google/apis/bigquery_v2/classes.rb', line 642

def records_written
  @records_written
end

#stepsArray<Google::Apis::BigqueryV2::ExplainQueryStep>

List of operations within the stage in dependency order (approximately chronological). Corresponds to the JSON property steps



648
649
650
# File 'generated/google/apis/bigquery_v2/classes.rb', line 648

def steps
  @steps
end

#wait_ratio_avgFloat

Relative amount of time the average shard spent waiting to be scheduled. Corresponds to the JSON property waitRatioAvg

Returns:

  • (Float)


653
654
655
# File 'generated/google/apis/bigquery_v2/classes.rb', line 653

def wait_ratio_avg
  @wait_ratio_avg
end

#wait_ratio_maxFloat

Relative amount of time the slowest shard spent waiting to be scheduled. Corresponds to the JSON property waitRatioMax

Returns:

  • (Float)


658
659
660
# File 'generated/google/apis/bigquery_v2/classes.rb', line 658

def wait_ratio_max
  @wait_ratio_max
end

#write_ratio_avgFloat

Relative amount of time the average shard spent on writing output. Corresponds to the JSON property writeRatioAvg

Returns:

  • (Float)


663
664
665
# File 'generated/google/apis/bigquery_v2/classes.rb', line 663

def write_ratio_avg
  @write_ratio_avg
end

#write_ratio_maxFloat

Relative amount of time the slowest shard spent on writing output. Corresponds to the JSON property writeRatioMax

Returns:

  • (Float)


668
669
670
# File 'generated/google/apis/bigquery_v2/classes.rb', line 668

def write_ratio_max
  @write_ratio_max
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
# File 'generated/google/apis/bigquery_v2/classes.rb', line 675

def update!(**args)
  @compute_ratio_avg = args[:compute_ratio_avg] if args.key?(:compute_ratio_avg)
  @compute_ratio_max = args[:compute_ratio_max] if args.key?(:compute_ratio_max)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @read_ratio_avg = args[:read_ratio_avg] if args.key?(:read_ratio_avg)
  @read_ratio_max = args[:read_ratio_max] if args.key?(:read_ratio_max)
  @records_read = args[:records_read] if args.key?(:records_read)
  @records_written = args[:records_written] if args.key?(:records_written)
  @steps = args[:steps] if args.key?(:steps)
  @wait_ratio_avg = args[:wait_ratio_avg] if args.key?(:wait_ratio_avg)
  @wait_ratio_max = args[:wait_ratio_max] if args.key?(:wait_ratio_max)
  @write_ratio_avg = args[:write_ratio_avg] if args.key?(:write_ratio_avg)
  @write_ratio_max = args[:write_ratio_max] if args.key?(:write_ratio_max)
end