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
 DoubleWritable evaluate(DoubleWritable i)
          Return NULL for NULL or negative inputs; otherwise, return the square root.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF
getRequiredFiles, getRequiredJars, 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 DoubleWritable evaluate(DoubleWritable i)
Return NULL for NULL or negative inputs; otherwise, return the square root.



Copyright © 2013 The Apache Software Foundation