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.



9152
9153
9154
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9152

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

Instance Attribute Details

#descString

Corresponds to the JSON property desc

Returns:

  • (String)


9130
9131
9132
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9130

def desc
  @desc
end

#metadataHash<String,String>

Optional. Additional metadata for the spark plan graph cluster. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


9135
9136
9137
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9135

def 
  @metadata
end

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

Corresponds to the JSON property metrics



9140
9141
9142
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9140

def metrics
  @metrics
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9145
9146
9147
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9145

def name
  @name
end

#spark_plan_graph_node_idFixnum

Corresponds to the JSON property sparkPlanGraphNodeId

Returns:

  • (Fixnum)


9150
9151
9152
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9150

def spark_plan_graph_node_id
  @spark_plan_graph_node_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9157
9158
9159
9160
9161
9162
9163
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9157

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