org.apache.hadoop.hive.ql.udf
Class UDFMath
java.lang.Object
org.apache.hadoop.hive.ql.exec.UDF
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
UDFMath
public UDFMath()
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.