Class: Google::Apis::DataprocV1::SparkPlanGraphNode

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

Represents a node in the spark plan tree.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SparkPlanGraphNode

Returns a new instance of SparkPlanGraphNode.



8567
8568
8569
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8567

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

Instance Attribute Details

#descString

Corresponds to the JSON property desc

Returns:

  • (String)


8550
8551
8552
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8550

def desc
  @desc
end

#metricsArray<Google::Apis::DataprocV1::SqlPlanMetric>

Corresponds to the JSON property metrics



8555
8556
8557
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8555

def metrics
  @metrics
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


8560
8561
8562
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8560

def name
  @name
end

#spark_plan_graph_node_idFixnum

Corresponds to the JSON property sparkPlanGraphNodeId

Returns:

  • (Fixnum)


8565
8566
8567
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8565

def spark_plan_graph_node_id
  @spark_plan_graph_node_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8572
8573
8574
8575
8576
8577
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8572

def update!(**args)
  @desc = args[:desc] if args.key?(:desc)
  @metrics = args[:metrics] if args.key?(:metrics)
  @name = args[:name] if args.key?(:name)
  @spark_plan_graph_node_id = args[:spark_plan_graph_node_id] if args.key?(:spark_plan_graph_node_id)
end