|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.impl.logicalLayer.LOVisitor
org.apache.pig.impl.logicalLayer.optimizer.Optimizer
org.apache.pig.impl.logicalLayer.optimizer.streaming.StoreOptimizer
public class StoreOptimizer
StoreOptimizer
tries to optimize away the deserialization done by Pig
for the simple case of a STREAM followed by a STORE operator; both with
equivalent StoreFunc
specifications.
In such cases it is safe to replace the StoreFunc
specifications with a BinaryStorage
which doesn't interpret the
output bytes at all.
Constructor Summary | |
---|---|
StoreOptimizer()
|
Method Summary | |
---|---|
boolean |
optimize(LogicalPlan root)
Optimize the given LogicalPlan if feasible and return status. |
void |
visitCogroup(LOCogroup g)
Only LOCogroup.visit() and subclass implementations of this function should ever call this method. |
void |
visitEval(LOEval e)
Only LOEval.visit() and subclass implementations of this function should ever call this method. |
void |
visitLoad(LOLoad load)
Only LOLoad.visit() and subclass implementations of this function should ever call this method. |
void |
visitSort(LOSort s)
Only LOSort.visit() and subclass implementations of this function should ever call this method. |
void |
visitSplit(LOSplit s)
Only LOSplit.visit() and subclass implementations of this function should ever call this method. |
void |
visitSplitOutput(LOSplitOutput s)
|
void |
visitStore(LOStore s)
Only LOStore.visit() and subclass implementations of this function should ever call this method. |
void |
visitUnion(LOUnion u)
Only LOUnion.visit() and subclass implementations of this function should ever call this method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreOptimizer()
Method Detail |
---|
public void visitCogroup(LOCogroup g)
LOVisitor
visitCogroup
in class LOVisitor
public void visitEval(LOEval e)
LOVisitor
visitEval
in class LOVisitor
public void visitLoad(LOLoad load)
LOVisitor
visitLoad
in class LOVisitor
public void visitSort(LOSort s)
LOVisitor
visitSort
in class LOVisitor
public void visitSplit(LOSplit s)
LOVisitor
visitSplit
in class LOVisitor
public void visitSplitOutput(LOSplitOutput s)
visitSplitOutput
in class LOVisitor
public void visitStore(LOStore s)
LOVisitor
visitStore
in class LOVisitor
public void visitUnion(LOUnion u)
LOVisitor
visitUnion
in class LOVisitor
public boolean optimize(LogicalPlan root)
Optimizer
LogicalPlan
if feasible and return status.
optimize
in class Optimizer
root
- root of the LogicalPlan
to optimize
true
if optimization was feasible and was effected,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |