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

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.ScalarVariableValidator

public class ScalarVariableValidator
extends LogicalRelationalNodesVisitor

This validator checks the correctness of use of scalar variables in logical operators. It assesses the validity of the expression by making sure there is no projection in it. Currently it works for Limit and Sample (see PIG-1926)


Nested Class Summary
static class ScalarVariableValidator.ProjectFinder
           
 
Field Summary
static String ERR_MSG_SCALAR
           
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
ScalarVariableValidator(OperatorPlan plan)
           
 
Method Summary
 void visit(LOFilter filter)
           
 void visit(LOLimit limit)
           
 
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, 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
 

Field Detail

ERR_MSG_SCALAR

public static final String ERR_MSG_SCALAR
See Also:
Constant Field Values
Constructor Detail

ScalarVariableValidator

public ScalarVariableValidator(OperatorPlan plan)
                        throws FrontendException
Throws:
FrontendException
Method Detail

visit

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

visit

public void visit(LOFilter filter)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException


Copyright © 2007-2012 The Apache Software Foundation