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>, Illustrable
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.PhysicalOperator
alias, dummyBag, dummyBool, dummyDBA, dummyDouble, dummyFloat, dummyInt, dummyLong, dummyMap, dummyString, dummyTuple, illustrator, 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)
           
 List<ExpressionOperator> getChildExpressions()
          Get the child expressions of this expression
 ExpressionOperator getLhs()
           
 ExpressionOperator getRhs()
           
 Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
          input tuple mark up to be illustrate-able
 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
accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, clone, containUDF, getNext, setIllustrator, supportsMultipleOutputs, visit
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
attachInput, cloneHelper, detachInput, getAlias, getAliasString, getDummy, getIllustrator, getInputs, getLogger, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getPigLogger, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setAlias, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType
 
Methods inherited from class org.apache.pig.impl.plan.Operator
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, name, regenerateProjectionMap, rewire, toString, unsetProjectionMap
 
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()

getChildExpressions

public List<ExpressionOperator> getChildExpressions()
Get the child expressions of this expression

Specified by:
getChildExpressions in class ExpressionOperator

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)

illustratorMarkup

public Tuple illustratorMarkup(Object in,
                               Object out,
                               int eqClassIndex)
Description copied from interface: Illustrable
input tuple mark up to be illustrate-able

Parameters:
in - input tuple
out - output tuple before wrapped in ExampleTuple
eqClassIndex - index into equivalence classes in illustrator
Returns:
tuple


Copyright © 2007-2012 The Apache Software Foundation