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

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

public class UDFSqrt
extends UDF

Implementation of the SQRT UDF found in many databases.


Constructor Summary
UDFSqrt()
           
 
Method Summary
 Double evaluate(Double i)
          Return NULL for NULL or negative inputs; otherwise, return the square root.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF
getResolver, setResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDFSqrt

public UDFSqrt()
Method Detail

evaluate

public Double evaluate(Double i)
Return NULL for NULL or negative inputs; otherwise, return the square root.



Copyright © 2009 The Apache Software Foundation