Class: Google::Apis::BigqueryV2::ExplainQueryStage
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::ExplainQueryStage
- 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
-
#compute_ratio_avg ⇒ Float
Relative amount of time the average shard spent on CPU-bound tasks.
-
#compute_ratio_max ⇒ Float
Relative amount of time the slowest shard spent on CPU-bound tasks.
-
#id ⇒ Fixnum
Unique ID for stage within plan.
-
#name ⇒ String
Human-readable name for stage.
-
#read_ratio_avg ⇒ Float
Relative amount of time the average shard spent reading input.
-
#read_ratio_max ⇒ Float
Relative amount of time the slowest shard spent reading input.
-
#records_read ⇒ Fixnum
Number of records read into the stage.
-
#records_written ⇒ Fixnum
Number of records written by the stage.
-
#status ⇒ String
Current status for the stage.
-
#steps ⇒ Array<Google::Apis::BigqueryV2::ExplainQueryStep>
List of operations within the stage in dependency order (approximately chronological).
-
#wait_ratio_avg ⇒ Float
Relative amount of time the average shard spent waiting to be scheduled.
-
#wait_ratio_max ⇒ Float
Relative amount of time the slowest shard spent waiting to be scheduled.
-
#write_ratio_avg ⇒ Float
Relative amount of time the average shard spent on writing output.
-
#write_ratio_max ⇒ Float
Relative amount of time the slowest shard spent on writing output.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExplainQueryStage
constructor
A new instance of ExplainQueryStage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExplainQueryStage
Returns a new instance of ExplainQueryStage
672 673 674 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 672 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compute_ratio_avg ⇒ Float
Relative amount of time the average shard spent on CPU-bound tasks.
Corresponds to the JSON property computeRatioAvg
604 605 606 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 604 def compute_ratio_avg @compute_ratio_avg end |
#compute_ratio_max ⇒ Float
Relative amount of time the slowest shard spent on CPU-bound tasks.
Corresponds to the JSON property computeRatioMax
609 610 611 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 609 def compute_ratio_max @compute_ratio_max end |
#id ⇒ Fixnum
Unique ID for stage within plan.
Corresponds to the JSON property id
614 615 616 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 614 def id @id end |
#name ⇒ String
Human-readable name for stage.
Corresponds to the JSON property name
619 620 621 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 619 def name @name end |
#read_ratio_avg ⇒ Float
Relative amount of time the average shard spent reading input.
Corresponds to the JSON property readRatioAvg
624 625 626 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 624 def read_ratio_avg @read_ratio_avg end |
#read_ratio_max ⇒ Float
Relative amount of time the slowest shard spent reading input.
Corresponds to the JSON property readRatioMax
629 630 631 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 629 def read_ratio_max @read_ratio_max end |
#records_read ⇒ Fixnum
Number of records read into the stage.
Corresponds to the JSON property recordsRead
634 635 636 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 634 def records_read @records_read end |
#records_written ⇒ Fixnum
Number of records written by the stage.
Corresponds to the JSON property recordsWritten
639 640 641 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 639 def records_written @records_written end |
#status ⇒ String
Current status for the stage.
Corresponds to the JSON property status
644 645 646 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 644 def status @status end |
#steps ⇒ Array<Google::Apis::BigqueryV2::ExplainQueryStep>
List of operations within the stage in dependency order (approximately
chronological).
Corresponds to the JSON property steps
650 651 652 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 650 def steps @steps end |
#wait_ratio_avg ⇒ Float
Relative amount of time the average shard spent waiting to be scheduled.
Corresponds to the JSON property waitRatioAvg
655 656 657 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 655 def wait_ratio_avg @wait_ratio_avg end |
#wait_ratio_max ⇒ Float
Relative amount of time the slowest shard spent waiting to be scheduled.
Corresponds to the JSON property waitRatioMax
660 661 662 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 660 def wait_ratio_max @wait_ratio_max end |
#write_ratio_avg ⇒ Float
Relative amount of time the average shard spent on writing output.
Corresponds to the JSON property writeRatioAvg
665 666 667 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 665 def write_ratio_avg @write_ratio_avg end |
#write_ratio_max ⇒ Float
Relative amount of time the slowest shard spent on writing output.
Corresponds to the JSON property writeRatioMax
670 671 672 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 670 def write_ratio_max @write_ratio_max end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 677 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) @status = args[:status] if args.key?(:status) @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 |