org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators
Class BinaryExpressionOperator

java.lang.Object
  extended by org.apache.pig.impl.plan.Operator<PhyPlanVisitor>
      extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
          extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
              extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.BinaryExpressionOperator
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Operator>
Direct Known Subclasses:
Add, BinaryComparisonOperator, Divide, Mod, Multiply, Subtract

public abstract class BinaryExpressionOperator
extends ExpressionOperator

A base class for all Binary expression operators. Supports the lhs and rhs operators which are used to fetch the inputs and apply the appropriate operation with the appropriate type.

See Also:
Serialized Form

Field Summary
protected  ExpressionOperator lhs
           
protected  ExpressionOperator rhs
           
 
Fields inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
log
 
Fields inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
dummyBag, dummyBool, dummyDBA, dummyDouble, dummyFloat, dummyInt, dummyLong, dummyMap, dummyString, dummyTuple, input, inputAttached, inputs, lineageTracer, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, resultType
 
Fields inherited from class org.apache.pig.impl.plan.Operator
mKey
 
Constructor Summary
BinaryExpressionOperator(OperatorKey k)
           
BinaryExpressionOperator(OperatorKey k, int rp)
           
 
Method Summary
protected  void cloneHelper(BinaryExpressionOperator op)
           
 ExpressionOperator getLhs()
           
 ExpressionOperator getRhs()
           
 void setLhs(ExpressionOperator lhs)
           
 void setRhs(ExpressionOperator rhs)
           
 boolean supportsMultipleInputs()
          Indicates whether this operator supports multiple inputs.
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
clone, getNext, supportsMultipleOutputs, visit
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
attachInput, cloneHelper, detachInput, getInputs, getLogger, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getPigLogger, getRequestedParallelism, getResultType, isBlocking, isInputAttached, processInput, reset, setInputs, setLineageTracer, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType
 
Methods inherited from class org.apache.pig.impl.plan.Operator
compareTo, equals, getOperatorKey, hashCode, name, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

lhs

protected ExpressionOperator lhs

rhs

protected ExpressionOperator rhs
Constructor Detail

BinaryExpressionOperator

public BinaryExpressionOperator(OperatorKey k)

BinaryExpressionOperator

public BinaryExpressionOperator(OperatorKey k,
                                int rp)
Method Detail

getLhs

public ExpressionOperator getLhs()

supportsMultipleInputs

public boolean supportsMultipleInputs()
Description copied from class: Operator
Indicates whether this operator supports multiple inputs.

Specified by:
supportsMultipleInputs in class Operator<PhyPlanVisitor>
Returns:
true if it does, otherwise false.

setLhs

public void setLhs(ExpressionOperator lhs)

getRhs

public ExpressionOperator getRhs()

setRhs

public void setRhs(ExpressionOperator rhs)

cloneHelper

protected void cloneHelper(BinaryExpressionOperator op)


Copyright © ${year} The Apache Software Foundation