org.apache.pig.impl.logicalLayer.optimizer
Class Optimizer
java.lang.Object
org.apache.pig.impl.logicalLayer.LOVisitor
org.apache.pig.impl.logicalLayer.optimizer.Optimizer
- Direct Known Subclasses:
- LoadOptimizer, StoreOptimizer
public abstract class Optimizer
- extends LOVisitor
Optimizer
is a simple LogicalPlan
optimizer.
It visits every node in the LogicalPlan
and then
optimizes the LogicalPlan
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Optimizer
public Optimizer()
optimize
public abstract boolean optimize(LogicalPlan root)
- Optimize the given
LogicalPlan
if feasible and return status.
- Parameters:
root
- root of the LogicalPlan
to optimize
- Returns:
true
if optimization was feasible and was effected,
false
otherwise.
Copyright © ${year} The Apache Software Foundation