org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators
Class UnaryComparisonOperator
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.UnaryExpressionOperator
org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.UnaryComparisonOperator
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>, ComparisonOperator, Illustrable
- Direct Known Subclasses:
- POIsNull, PONot
public abstract class UnaryComparisonOperator
- extends UnaryExpressionOperator
- implements ComparisonOperator
This is a base class for all unary comparison operators. Supports the
use of operand type instead of result type as the result type is
always boolean.
- 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 |
operandType
protected byte operandType
UnaryComparisonOperator
public UnaryComparisonOperator(OperatorKey k)
UnaryComparisonOperator
public UnaryComparisonOperator(OperatorKey k,
int rp)
getOperandType
public byte getOperandType()
- Description copied from interface:
ComparisonOperator
- Determine the type of the operand(s) of this comparator.
- Specified by:
getOperandType
in interface ComparisonOperator
- Returns:
- type, as a byte (using DataType types).
setOperandType
public void setOperandType(byte operandType)
- Description copied from interface:
ComparisonOperator
- Set the type of the operand(s) of this comparator.
- Specified by:
setOperandType
in interface ComparisonOperator
- Parameters:
operandType
- Type of the operand(s), as a byte (using DataType
types).
illustratorMarkup
public Tuple illustratorMarkup(Object in,
Object out,
int eqClassIndex)
- Description copied from interface:
Illustrable
- input tuple mark up to be illustrate-able
- Specified by:
illustratorMarkup
in interface Illustrable
- Parameters:
in
- input tupleout
- output tuple before wrapped in ExampleTupleeqClassIndex
- index into equivalence classes in illustrator
- Returns:
- tuple
Copyright © ${year} The Apache Software Foundation