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.UDFMath
          extended by org.apache.hadoop.hive.ql.udf.UDFSqrt

public class UDFSqrt
extends UDFMath

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.udf.UDFMath
evaluate
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF
getRequiredFiles, getRequiredJars, getResolver, setResolver
 
Methods inherited from class java.lang.Object
equals, 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.

Specified by:
evaluate in class UDFMath


Copyright © 2014 The Apache Software Foundation. All rights reserved.