public class UDFLog extends UDFMath
Constructor and Description |
---|
UDFLog() |
Modifier and Type | Method and Description |
---|---|
protected DoubleWritable |
doEvaluate(DoubleWritable a)
Returns the natural logarithm of "a".
|
DoubleWritable |
evaluate(DoubleWritable base,
DoubleWritable a)
Returns the logarithm of "a" with base "base".
|
DoubleWritable |
evaluate(HiveDecimalWritable baseWritable,
HiveDecimalWritable writable)
Get the logarithm of the given decimal input with the given decimal base.
|
getRequiredFiles, getRequiredJars, getResolver, setResolver
public DoubleWritable evaluate(DoubleWritable base, DoubleWritable a)
public DoubleWritable evaluate(HiveDecimalWritable baseWritable, HiveDecimalWritable writable)
protected DoubleWritable doEvaluate(DoubleWritable a)
doEvaluate
in class UDFMath
Copyright © 2016 The Apache Software Foundation. All rights reserved.