org.apache.pig.newplan.logical.expression
Class BinaryExpression

java.lang.Object
  extended by org.apache.pig.newplan.Operator
      extended by org.apache.pig.newplan.logical.expression.LogicalExpression
          extended by 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


Field Summary
 
Fields inherited from class org.apache.pig.newplan.logical.expression.LogicalExpression
fieldSchema, uidOnlyFieldSchema
 
Fields inherited from class org.apache.pig.newplan.Operator
annotations, hashPrime, location, name, plan
 
Constructor Summary
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.
 
Method Summary
 LogicalExpression getLhs()
          Get the left hand side of this binary expression.
 LogicalExpression getRhs()
          Get the right hand side of this binary expression.
 
Methods inherited from class org.apache.pig.newplan.logical.expression.LogicalExpression
deepCopy, getFieldSchema, getNextUid, getType, neverUseForRealSetFieldSchema, resetFieldSchema, resetNextUid, resetUid, toString
 
Methods inherited from class org.apache.pig.newplan.Operator
accept, annotate, getAnnotation, getLocation, getName, getPlan, isEqual, removeAnnotation, setLocation, setPlan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 operator
plan - plan this operator is part of
lhs - expression on its left hand side
rhs - expression on its right hand side
Method Detail

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 © ${year} The Apache Software Foundation