org.apache.pig.newplan.logical.expression
Class BinaryExpression
java.lang.Object
org.apache.pig.newplan.Operator
org.apache.pig.newplan.logical.expression.LogicalExpression
org.apache.pig.newplan.logical.expression.BinaryExpression
- Direct Known Subclasses:
- AddExpression, AndExpression, DivideExpression, EqualExpression, GreaterThanEqualExpression, GreaterThanExpression, LessThanEqualExpression, LessThanExpression, ModExpression, MultiplyExpression, NotEqualExpression, OrExpression, RegexExpression, SubtractExpression
public abstract class BinaryExpression
- extends LogicalExpression
Superclass for all binary expressions
BinaryExpression
public BinaryExpression(String name,
OperatorPlan plan,
LogicalExpression lhs,
LogicalExpression rhs)
- Will add this operator to the plan and connect it to the
left and right hand side operators.
- Parameters:
name
- of the operatorplan
- plan this operator is part oflhs
- expression on its left hand siderhs
- expression on its right hand side
getLhs
public LogicalExpression getLhs()
throws FrontendException
- Get the left hand side of this binary expression.
- Returns:
- expression on the left hand side
- Throws:
FrontendException
getRhs
public LogicalExpression getRhs()
throws FrontendException
- Get the right hand side of this binary expression.
- Returns:
- expression on the right hand side
- Throws:
FrontendException
Copyright © 2012 The Apache Software Foundation