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(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable baseWritable,
org.apache.hadoop.hive.serde2.io.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(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable baseWritable, org.apache.hadoop.hive.serde2.io.HiveDecimalWritable writable)
protected DoubleWritable doEvaluate(DoubleWritable a)
doEvaluate
in class UDFMath
Copyright © 2021 The Apache Software Foundation. All rights reserved.