Class: Neo4j::Driver::Summary::Plan
- Inherits:
-
Object
- Object
- Neo4j::Driver::Summary::Plan
- Defined in:
- lib/neo4j/driver/summary/plan.rb
Overview
Query execution plan tree. Mirrors org.neo4j.driver.summary.Plan.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#arguments ⇒ Object
(also: #args)
readonly
Returns the value of attribute arguments.
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#identifiers ⇒ Object
readonly
Returns the value of attribute identifiers.
-
#operator_type ⇒ Object
readonly
Returns the value of attribute operator_type.
Instance Method Summary collapse
-
#initialize(plan_data) ⇒ Plan
constructor
A new instance of Plan.
Constructor Details
#initialize(plan_data) ⇒ Plan
Returns a new instance of Plan.
10 11 12 13 14 15 |
# File 'lib/neo4j/driver/summary/plan.rb', line 10 def initialize(plan_data) @operator_type = plan_data[:operatorType] @identifiers = plan_data[:identifiers] || [] @arguments = plan_data[:args] || {} @children = (plan_data[:children] || []).map { |child| self.class.new(child) } end |
Instance Attribute Details
#arguments ⇒ Object (readonly) Also known as: args
Returns the value of attribute arguments.
8 9 10 |
# File 'lib/neo4j/driver/summary/plan.rb', line 8 def arguments @arguments end |
#children ⇒ Object (readonly)
Returns the value of attribute children.
8 9 10 |
# File 'lib/neo4j/driver/summary/plan.rb', line 8 def children @children end |
#identifiers ⇒ Object (readonly)
Returns the value of attribute identifiers.
8 9 10 |
# File 'lib/neo4j/driver/summary/plan.rb', line 8 def identifiers @identifiers end |
#operator_type ⇒ Object (readonly)
Returns the value of attribute operator_type.
8 9 10 |
# File 'lib/neo4j/driver/summary/plan.rb', line 8 def operator_type @operator_type end |