public class DependencyOrderWalker<O extends Operator,P extends OperatorPlan<O>> extends PlanWalker<O,P>
mPlan
Constructor and Description |
---|
DependencyOrderWalker(P plan) |
DependencyOrderWalker(P plan,
boolean walkLeavesInOrder) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAllPredecessors(O node,
Set<O> seen,
Collection<O> fifo) |
PlanWalker<O,P> |
spawnChildWalker(P plan)
Return a new instance of this same type of walker for a subplan.
|
void |
walk(PlanVisitor<O,P> visitor)
Begin traversing the graph.
|
getPlan, setPlan
public DependencyOrderWalker(P plan)
plan
- Plan for this walker to traverse.public DependencyOrderWalker(P plan, boolean walkLeavesInOrder)
plan
- Plan for this walker to traverse.boolean
- walkLeavesInOrder Sort the leaves before walkingpublic void walk(PlanVisitor<O,P> visitor) throws VisitorException
walk
in class PlanWalker<O extends Operator,P extends OperatorPlan<O>>
visitor
- Visitor this walker is being used by.VisitorException
- if an error is encountered while walking.public PlanWalker<O,P> spawnChildWalker(P plan)
PlanWalker
spawnChildWalker
in class PlanWalker<O extends Operator,P extends OperatorPlan<O>>
plan
- Plan for the new walker.protected void doAllPredecessors(O node, Set<O> seen, Collection<O> fifo) throws VisitorException
VisitorException
Copyright © 2007-2012 The Apache Software Foundation