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, 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
PhysicalOperator.OriginalLocation
 
Field Summary
protected  byte operandType
           
 
Fields inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
alias, illustrator, input, inputAttached, inputs, lineageTracer, outputs, parentPlan, pigLogger, 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.
 Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
          input tuple mark up to be illustrate-able
 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, clone, containUDF, getNextDataBag, setIllustrator, supportsMultipleOutputs, toString, visit
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
addOriginalLocation, addOriginalLocation, attachInput, cloneHelper, detachInput, getAlias, getAliasString, getIllustrator, getInputs, getLogger, getNext, getNextBigDecimal, getNextBigInteger, getNextBoolean, getNextDataByteArray, getNextDateTime, getNextDouble, getNextFloat, getNextInteger, getNextLong, getNextMap, getNextString, getNextTuple, getOriginalLocations, getPigLogger, getReporter, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType
 
Methods inherited from class org.apache.pig.impl.plan.Operator
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, name, regenerateProjectionMap, rewire, 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
getNextBoolean, getNextDataBag, getNextDataByteArray, getNextDateTime, getNextDouble, getNextFloat, getNextInteger, getNextLong, getNextMap, getNextString, getNextTuple
 

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

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 tuple
out - output tuple before wrapped in ExampleTuple
eqClassIndex - index into equivalence classes in illustrator
Returns:
tuple


Copyright © 2007-2012 The Apache Software Foundation