public abstract class PlanWalker extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected OperatorPlan | plan | 
| Constructor and Description | 
|---|
| PlanWalker(OperatorPlan plan) | 
| Modifier and Type | Method and Description | 
|---|---|
| OperatorPlan | getPlan() | 
| void | setPlan(OperatorPlan plan)Set the plan for this walker to operate on. | 
| abstract PlanWalker | spawnChildWalker(OperatorPlan plan)Return a new instance of this same type of walker for a subplan. | 
| abstract void | walk(PlanVisitor visitor)Begin traversing the graph. | 
protected OperatorPlan plan
public PlanWalker(OperatorPlan plan)
plan - Plan for this walker to traverse.public abstract void walk(PlanVisitor visitor) throws FrontendException
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.FrontendExceptionpublic abstract PlanWalker spawnChildWalker(OperatorPlan plan)
plan - Plan for the new walker.public OperatorPlan getPlan()
public void setPlan(OperatorPlan plan)
plan - to walkCopyright © 2007-2017 The Apache Software Foundation