org.apache.pig.impl.logicalLayer.validators
Class SchemaAliasVisitor

java.lang.Object
  extended by org.apache.pig.impl.plan.PlanVisitor<LogicalOperator,LogicalPlan>
      extended by org.apache.pig.impl.logicalLayer.LOVisitor
          extended by org.apache.pig.impl.logicalLayer.validators.SchemaAliasVisitor

public class SchemaAliasVisitor
extends LOVisitor


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
SchemaAliasVisitor(LogicalPlan plan)
           
 
Method Summary
protected  void validate(LogicalOperator lo)
          The logic here is to check if we have duplicate alias in each schema
protected  void visit(LOCogroup cogroup)
           
protected  void visit(LOCross cross)
           
protected  void visit(LODistinct distinct)
           
protected  void visit(LOFilter filter)
           
protected  void visit(LOForEach foreach)
           
protected  void visit(LOJoin join)
           
protected  void visit(LOLimit limit)
           
protected  void visit(LOLoad load)
           
protected  void visit(LONative nativeMR)
           
protected  void visit(LOSort sort)
           
protected  void visit(LOSplit split)
           
protected  void visit(LOSplitOutput splitoutput)
           
protected  void visit(LOStore store)
           
protected  void visit(LOStream stream)
           
protected  void visit(LOUnion union)
           
 
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, visit, visit, visit, visit, visit, visit
 
Methods inherited from class org.apache.pig.impl.plan.PlanVisitor
getPlan, popWalker, pushWalker, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaAliasVisitor

public SchemaAliasVisitor(LogicalPlan plan)
Method Detail

validate

protected void validate(LogicalOperator lo)
                 throws PlanValidationException
The logic here is to check if we have duplicate alias in each schema

Throws:
PlanValidationException

visit

protected void visit(LOLoad load)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException

visit

protected void visit(LOCogroup cogroup)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Parameters:
cogroup - the logical cogroup operator that has to be visited
Throws:
PlanValidationException

visit

protected void visit(LOCross cross)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException

visit

protected void visit(LODistinct distinct)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException

visit

protected void visit(LOFilter filter)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Parameters:
filter - the logical filter operator that has to be visited
Throws:
PlanValidationException

visit

protected void visit(LOForEach foreach)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Parameters:
foreach - the logical foreach operator that has to be visited
Throws:
PlanValidationException

visit

protected void visit(LOJoin join)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Parameters:
join - the logical join operator that has to be visited
Throws:
PlanValidationException

visit

protected void visit(LOLimit limit)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException

visit

protected void visit(LOSort sort)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Parameters:
sort - the logical sort operator that has to be visited
Throws:
PlanValidationException

visit

protected void visit(LOSplit split)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Parameters:
split - the logical split operator that has to be visited
Throws:
PlanValidationException

visit

protected void visit(LOSplitOutput splitoutput)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException

visit

protected void visit(LOStore store)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException

visit

protected void visit(LOStream stream)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException

visit

protected void visit(LOUnion union)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException

visit

protected void visit(LONative nativeMR)
              throws PlanValidationException
Overrides:
visit in class LOVisitor
Throws:
PlanValidationException


Copyright © ${year} The Apache Software Foundation