org.apache.pig.newplan.logical.visitor
Class ScalarVariableValidator
java.lang.Object
org.apache.pig.newplan.PlanVisitor
org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
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)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERR_MSG_SCALAR
public static final String ERR_MSG_SCALAR
- See Also:
- Constant Field Values
ScalarVariableValidator
public ScalarVariableValidator(OperatorPlan plan)
throws FrontendException
- Throws:
FrontendException
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