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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.UDF
      extended by org.apache.hadoop.hive.ql.udf.UDFMath
Direct Known Subclasses:
UDFAcos, UDFAsin, UDFAtan, UDFCos, UDFDegrees, UDFExp, UDFLn, UDFLog, UDFLog10, UDFLog2, UDFRadians, UDFSin, UDFSqrt, UDFTan

public abstract class UDFMath
extends UDF


Constructor Summary
UDFMath()
           
 
Method Summary
abstract  DoubleWritable evaluate(DoubleWritable a)
          For subclass to implement.
 DoubleWritable evaluate(HiveDecimalWritable writable)
          Convert HiveDecimal to a double and call evaluate() on it.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF
getRequiredFiles, getRequiredJars, getResolver, setResolver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDFMath

public UDFMath()
Method Detail

evaluate

public abstract DoubleWritable evaluate(DoubleWritable a)
For subclass to implement.


evaluate

public final DoubleWritable evaluate(HiveDecimalWritable writable)
Convert HiveDecimal to a double and call evaluate() on it.



Copyright © 2014 The Apache Software Foundation. All rights reserved.