Class: Neo4j::Driver::Summary::Plan

Inherits:
Object
  • Object
show all
Defined in:
lib/neo4j/driver/summary/plan.rb

Overview

Query execution plan tree. Mirrors org.neo4j.driver.summary.Plan.

Direct Known Subclasses

Profile

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject (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

#childrenObject (readonly)

Returns the value of attribute children.



8
9
10
# File 'lib/neo4j/driver/summary/plan.rb', line 8

def children
  @children
end

#identifiersObject (readonly)

Returns the value of attribute identifiers.



8
9
10
# File 'lib/neo4j/driver/summary/plan.rb', line 8

def identifiers
  @identifiers
end

#operator_typeObject (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