public abstract class PlanOptimizer extends Object
Modifier and Type | Field and Description |
---|---|
protected List<PlanTransformListener> |
listeners |
protected int |
maxIter |
protected OperatorPlan |
plan |
protected List<Set<Rule>> |
ruleSets |
Modifier | Constructor and Description |
---|---|
protected |
PlanOptimizer(OperatorPlan p,
List<Set<Rule>> rs,
int iterations) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPlanTransformListener(PlanTransformListener listener)
Adds a listener to the optimization.
|
void |
optimize()
Run the optimizer.
|
protected OperatorPlan plan
protected List<PlanTransformListener> listeners
protected int maxIter
protected PlanOptimizer(OperatorPlan p, List<Set<Rule>> rs, int iterations)
p
- Plan to optimizers
- List of RuleSets to use to optimizeiterations
- maximum number of optimization iterations,
set to -1 for defaultprotected void addPlanTransformListener(PlanTransformListener listener)
listener
- public void optimize() throws FrontendException
FrontendException
Copyright © 2007-2012 The Apache Software Foundation