org.apache.pig.newplan.logical.visitor
Class TypeCheckingRelVisitor

java.lang.Object
  extended by org.apache.pig.newplan.PlanVisitor
      extended by org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
          extended by org.apache.pig.newplan.logical.visitor.TypeCheckingRelVisitor

public class TypeCheckingRelVisitor
extends LogicalRelationalNodesVisitor


Field Summary
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
TypeCheckingRelVisitor(OperatorPlan plan, CompilationMessageCollector msgCollector)
           
 
Method Summary
 void visit(LOCogroup cg)
          COGroup All group by cols from all inputs have to be of the same type
 void visit(LOCross cs)
          Return concatenated of all fields from all input operators If one of the inputs have no schema then we cannot construct the output schema.
 void visit(LODistinct op)
          LODistinct, output schema should be the same as input
 void visit(LOFilter filter)
          The schema of filter output will be the same as filter input
 void visit(LOForEach forEach)
           
 void visit(LOGenerate gen)
           
 void visit(LOInnerLoad innerLoad)
           
 void visit(LOJoin join)
          LOJoin visitor
 void visit(LOLimit limit)
           
 void visit(LOLoad load)
           
 void visit(LORank rank)
          The schema of rank output will be the same as input, plus a rank field.
 void visit(LOSort sort)
          The schema of sort output will be the same as sort input.
 void visit(LOSplit split)
          The schema of split output will be the same as split input
 void visit(LOSplitOutput op)
           
 void visit(LOStore store)
           
 void visit(LOUnion u)
           
 
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
visit, visit, visit
 
Methods inherited from class org.apache.pig.newplan.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

TypeCheckingRelVisitor

public TypeCheckingRelVisitor(OperatorPlan plan,
                              CompilationMessageCollector msgCollector)
                       throws FrontendException
Throws:
FrontendException
Method Detail

visit

public void visit(LOLoad load)
Overrides:
visit in class LogicalRelationalNodesVisitor

visit

public void visit(LOStore store)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOFilter filter)
           throws FrontendException
The schema of filter output will be the same as filter input

Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOGenerate gen)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOInnerLoad innerLoad)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOForEach forEach)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOUnion u)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOSplitOutput op)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LODistinct op)
           throws VisitorException
LODistinct, output schema should be the same as input

Overrides:
visit in class LogicalRelationalNodesVisitor
Parameters:
op -
Throws:
VisitorException

visit

public void visit(LOLimit limit)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOCross cs)
           throws VisitorException
Return concatenated of all fields from all input operators If one of the inputs have no schema then we cannot construct the output schema.

Overrides:
visit in class LogicalRelationalNodesVisitor
Parameters:
cs -
Throws:
VisitorException

visit

public void visit(LOSort sort)
           throws FrontendException
The schema of sort output will be the same as sort input.

Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LORank rank)
           throws FrontendException
The schema of rank output will be the same as input, plus a rank field.

Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOSplit split)
           throws VisitorException
The schema of split output will be the same as split input

Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
VisitorException

visit

public void visit(LOJoin join)
           throws FrontendException
LOJoin visitor

Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOCogroup cg)
           throws FrontendException
COGroup All group by cols from all inputs have to be of the same type

Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException


Copyright © 2007-2012 The Apache Software Foundation