org.apache.pig.impl.logicalLayer.optimizer
Class SchemaCalculator
java.lang.Object
org.apache.pig.impl.plan.PlanVisitor<LogicalOperator,LogicalPlan>
org.apache.pig.impl.logicalLayer.LOVisitor
org.apache.pig.impl.logicalLayer.optimizer.SchemaCalculator
public class SchemaCalculator
- extends LOVisitor
A visitor to reset all the schemas in a logical plan.
Methods inherited from class org.apache.pig.impl.logicalLayer.LOVisitor |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaCalculator
public SchemaCalculator(LogicalPlan plan)
visit
protected void visit(BinaryExpressionOperator binOp)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
binOp
- the logical binary expression operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(UnaryExpressionOperator uniOp)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
uniOp
- the logical unary operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOCogroup cg)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
cg
- the logical cogroup operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOSort s)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
s
- the logical sort operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOLimit limit)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
limit
- the logical limit operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOFilter filter)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
filter
- the logical filter operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOSplit split)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
split
- the logical split operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOForEach forEach)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
forEach
- the logical foreach operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOUserFunc func)
throws VisitorException
- Iterate over each expression that is part of the function argument list
- Overrides:
visit
in class LOVisitor
- Parameters:
func
- the user defined function
- Throws:
VisitorException
visit
protected void visit(LOBinCond binCond)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
binCond
- the logical binCond operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOCast cast)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
cast
- the logical cast operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LORegexp regexp)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
regexp
- the logical regexp operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOLoad load)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOStore store)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOConst c)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOUnion u)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOSplitOutput sop)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LODistinct dt)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOCross cs)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOProject project)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
Copyright © ${year} The Apache Software Foundation