org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators
Interface ComparisonOperator

All Known Implementing Classes:
BinaryComparisonOperator, EqualToExpr, GreaterThanExpr, GTOrEqualToExpr, LessThanExpr, LTOrEqualToExpr, NotEqualToExpr, POAnd, POIsNull, PONot, POOr, PORegexp, UnaryComparisonOperator

public interface ComparisonOperator

This is an interface for all comparison operators. Supports the use of operand type instead of result type as the result type is always boolean.


Method Summary
 Result getNext(Boolean b)
           
 Result getNext(DataBag db)
           
 Result getNext(DataByteArray ba)
           
 Result getNext(Double d)
           
 Result getNext(Float f)
           
 Result getNext(Integer i)
           
 Result getNext(Long l)
           
 Result getNext(Map m)
           
 Result getNext(String s)
           
 Result getNext(Tuple t)
           
 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.
 

Method Detail

getOperandType

byte getOperandType()
Determine the type of the operand(s) of this comparator.

Returns:
type, as a byte (using DataType types).

setOperandType

void setOperandType(byte operandType)
Set the type of the operand(s) of this comparator.

Parameters:
operandType - Type of the operand(s), as a byte (using DataType types).

getNext

Result getNext(Integer i)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(Long l)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(Double d)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(Float f)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(String s)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(DataByteArray ba)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(Map m)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(Boolean b)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(Tuple t)
               throws ExecException
Throws:
ExecException

getNext

Result getNext(DataBag db)
               throws ExecException
Throws:
ExecException


Copyright © 2007-2012 The Apache Software Foundation