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 getNextBoolean()
           
 Result getNextDataBag()
           
 Result getNextDataByteArray()
           
 Result getNextDateTime()
           
 Result getNextDouble()
           
 Result getNextFloat()
           
 Result getNextInteger()
           
 Result getNextLong()
           
 Result getNextMap()
           
 Result getNextString()
           
 Result getNextTuple()
           
 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).

getNextInteger

Result getNextInteger()
                      throws ExecException
Throws:
ExecException

getNextLong

Result getNextLong()
                   throws ExecException
Throws:
ExecException

getNextDouble

Result getNextDouble()
                     throws ExecException
Throws:
ExecException

getNextFloat

Result getNextFloat()
                    throws ExecException
Throws:
ExecException

getNextString

Result getNextString()
                     throws ExecException
Throws:
ExecException

getNextDataByteArray

Result getNextDataByteArray()
                            throws ExecException
Throws:
ExecException

getNextMap

Result getNextMap()
                  throws ExecException
Throws:
ExecException

getNextBoolean

Result getNextBoolean()
                      throws ExecException
Throws:
ExecException

getNextDateTime

Result getNextDateTime()
                       throws ExecException
Throws:
ExecException

getNextTuple

Result getNextTuple()
                    throws ExecException
Throws:
ExecException

getNextDataBag

Result getNextDataBag()
                      throws ExecException
Throws:
ExecException


Copyright © 2007-2012 The Apache Software Foundation