public class DepthFirstWalker<O extends Operator,P extends OperatorPlan<O>> extends PlanWalker<O,P>
mPlan
Constructor and Description |
---|
DepthFirstWalker(P plan) |
Modifier and Type | Method and Description |
---|---|
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 DepthFirstWalker(P plan)
plan
- Plan for this walker to traverse.public 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.Copyright © 2007-2012 The Apache Software Foundation