org.apache.hadoop.hive.ql.udf
Class UDFBaseNumericOp

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.UDF
      extended by org.apache.hadoop.hive.ql.udf.UDFBaseNumericOp
Direct Known Subclasses:
UDFOPDivide, UDFOPMinus, UDFOPMod, UDFOPMultiply, UDFOPPlus

public abstract class UDFBaseNumericOp
extends UDF

Base class for numeric operators like +, -, / etc. All these operators share a common method resolver (NumericOpMethodResolver).


Constructor Summary
UDFBaseNumericOp()
          Constructor.
 
Method Summary
abstract  Byte evaluate(Byte a, Byte b)
           
abstract  Double evaluate(Double a, Double b)
           
abstract  Float evaluate(Float a, Float b)
           
abstract  Integer evaluate(Integer a, Integer b)
           
abstract  Long evaluate(Long a, Long b)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF
getResolver, setResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDFBaseNumericOp

public UDFBaseNumericOp()
Constructor. This constructor sets the resolver to be used for comparison operators. See UDFMethodResolver

Method Detail

evaluate

public abstract Byte evaluate(Byte a,
                              Byte b)

evaluate

public abstract Integer evaluate(Integer a,
                                 Integer b)

evaluate

public abstract Long evaluate(Long a,
                              Long b)

evaluate

public abstract Float evaluate(Float a,
                               Float b)

evaluate

public abstract Double evaluate(Double a,
                                Double b)


Copyright © 2009 The Apache Software Foundation