org.apache.pig.impl.logicalLayer.optimizer
Class Optimizer

java.lang.Object
  extended by org.apache.pig.impl.logicalLayer.LOVisitor
      extended by 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.


Constructor Summary
Optimizer()
           
 
Method Summary
abstract  boolean optimize(LogicalPlan root)
          Optimize the given LogicalPlan if feasible and return status.
 
Methods inherited from class org.apache.pig.impl.logicalLayer.LOVisitor
visitCogroup, visitEval, visitLoad, visitSort, visitSplit, visitSplitOutput, visitStore, visitUnion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Optimizer

public Optimizer()
Method Detail

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