org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators
Class BinaryExpressionOperator
java.lang.Object
org.apache.pig.impl.plan.Operator<PhyPlanVisitor>
org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
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
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 |
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 |
lhs
protected ExpressionOperator lhs
rhs
protected ExpressionOperator rhs
BinaryExpressionOperator
public BinaryExpressionOperator(OperatorKey k)
BinaryExpressionOperator
public BinaryExpressionOperator(OperatorKey k,
int rp)
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 tupleout
- output tuple before wrapped in ExampleTupleeqClassIndex
- index into equivalence classes in illustrator
- Returns:
- tuple
Copyright © ${year} The Apache Software Foundation