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

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.UnaryExpressionOperator
                  extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.UnaryComparisonOperator
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Operator>, ComparisonOperator
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

Field Summary
protected  byte operandType
           
 
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
alias, 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
UnaryComparisonOperator(OperatorKey k)
           
UnaryComparisonOperator(OperatorKey k, int rp)
           
 
Method Summary
 byte getOperandType()
          Determine the type of the operand(s) of this comparator.
 void setOperandType(byte operandType)
          Set the type of the operand(s) of this comparator.
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.UnaryExpressionOperator
cloneHelper, getChildExpressions, getExpr, setExpr, setInputAsExpr, supportsMultipleInputs
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, clone, containUDF, getNext, supportsMultipleOutputs, visit
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
attachInput, cloneHelper, detachInput, getAlias, getAliasString, getInputs, getLogger, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getPigLogger, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setAlias, setInputs, setLineageTracer, 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
 
Methods inherited from interface org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ComparisonOperator
getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext
 

Field Detail

operandType

protected byte operandType
Constructor Detail

UnaryComparisonOperator

public UnaryComparisonOperator(OperatorKey k)

UnaryComparisonOperator

public UnaryComparisonOperator(OperatorKey k,
                               int rp)
Method Detail

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).


Copyright © ${year} The Apache Software Foundation