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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.UDF
      extended by org.apache.hadoop.hive.ql.udf.UDFMath
          extended by org.apache.hadoop.hive.ql.udf.UDFLog

public class UDFLog
extends UDFMath

UDFLog.


Constructor Summary
UDFLog()
           
 
Method Summary
 DoubleWritable evaluate(DoubleWritable a)
          Returns the natural logarithm of "a".
 DoubleWritable evaluate(DoubleWritable base, DoubleWritable a)
          Returns the logarithm of "a" with base "base".
 DoubleWritable evaluate(DoubleWritable base, HiveDecimalWritable writable)
          Get the logarithm of the given decimal with the given base.
 DoubleWritable evaluate(HiveDecimalWritable base, DoubleWritable d)
          Get the logarithm of input with the given decimal as the base.
 DoubleWritable evaluate(HiveDecimalWritable baseWritable, HiveDecimalWritable writable)
          Get the logarithm of the given decimal input with the given decimal base.
 
Methods inherited from class org.apache.hadoop.hive.ql.udf.UDFMath
evaluate
 
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

UDFLog

public UDFLog()
Method Detail

evaluate

public DoubleWritable evaluate(DoubleWritable a)
Returns the natural logarithm of "a".

Specified by:
evaluate in class UDFMath

evaluate

public DoubleWritable evaluate(DoubleWritable base,
                               DoubleWritable a)
Returns the logarithm of "a" with base "base".


evaluate

public DoubleWritable evaluate(DoubleWritable base,
                               HiveDecimalWritable writable)
Get the logarithm of the given decimal with the given base.


evaluate

public DoubleWritable evaluate(HiveDecimalWritable base,
                               DoubleWritable d)
Get the logarithm of input with the given decimal as the base.


evaluate

public DoubleWritable evaluate(HiveDecimalWritable baseWritable,
                               HiveDecimalWritable writable)
Get the logarithm of the given decimal input with the given decimal base.



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