org.apache.hadoop.hive.ql.udf
Class UDFSqrt
java.lang.Object
org.apache.hadoop.hive.ql.exec.UDF
org.apache.hadoop.hive.ql.udf.UDFSqrt
public class UDFSqrt
- extends UDF
Implementation of the SQRT UDF found in many databases.
Method Summary |
Double |
evaluate(Double i)
Return NULL for NULL or negative inputs; otherwise, return
the square root. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDFSqrt
public UDFSqrt()
evaluate
public Double evaluate(Double i)
- Return NULL for NULL or negative inputs; otherwise, return
the square root.
Copyright © 2009 The Apache Software Foundation