public abstract class PlanOptimizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PlanTransformListener> |
listeners |
protected int |
maxIter |
protected OperatorPlan |
plan |
protected java.util.List<java.util.Set<Rule>> |
ruleSets |
Modifier | Constructor and Description |
---|---|
protected |
PlanOptimizer(OperatorPlan p,
java.util.List<java.util.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 java.util.List<java.util.Set<Rule>> ruleSets
protected OperatorPlan plan
protected java.util.List<PlanTransformListener> listeners
protected int maxIter
protected PlanOptimizer(OperatorPlan p, java.util.List<java.util.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