Method: NoSE::Plans::PlanStep#parent_steps
- Defined in:
- lib/nose/plans.rb
#parent_steps(cost_model = nil) ⇒ QueryPlan
Get the list of steps which led us here If a cost model is not provided, statement plans using this step cannot be evaluated on the basis of cost
(this is to support PlanStep#parent_index which does not need cost)
52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/nose/plans.rb', line 52 def parent_steps(cost_model = nil) steps = nil if @parent.nil? steps = QueryPlan.new state.query, cost_model else steps = @parent.parent_steps cost_model steps << self end steps end |