public abstract class PlanWalker<O extends Operator,P extends OperatorPlan<O>> extends Object
Constructor and Description |
---|
PlanWalker(P plan) |
Modifier and Type | Method and Description |
---|---|
P |
getPlan() |
void |
setPlan(P plan) |
abstract PlanWalker<O,P> |
spawnChildWalker(P plan)
Return a new instance of this same type of walker for a subplan.
|
abstract void |
walk(PlanVisitor<O,P> visitor)
Begin traversing the graph.
|
protected P extends OperatorPlan<O> mPlan
public PlanWalker(P plan)
plan
- Plan for this walker to traverse.public abstract void walk(PlanVisitor<O,P> visitor) throws VisitorException
visitor
- Visitor this walker is being used by. This can't be set in
the constructor because the visitor is constructing this class, and does
not yet have a 'this' pointer to send as an argument.VisitorException
- if an error is encountered while walking.public abstract PlanWalker<O,P> spawnChildWalker(P plan)
plan
- Plan for the new walker.public P getPlan()
public void setPlan(P plan)
Copyright © 2007-2017 The Apache Software Foundation