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

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

public class UDFToDouble
extends UDF


Constructor Summary
UDFToDouble()
           
 
Method Summary
 Double evaluate(Boolean i)
          Convert from boolean to a double.
 Double evaluate(Byte i)
          Convert from boolean to a double.
 Double evaluate(Date i)
          Convert from date to a double.
 Double evaluate(Float i)
          Convert from float to a double.
 Double evaluate(Integer i)
          Convert from integer to a double.
 Double evaluate(Long i)
          Convert from long to a double.
 Double evaluate(Short i)
          Convert from short to a double.
 Double evaluate(String i)
          Convert from string to a double.
 Double evaluate(Void i)
          Convert from void to a double.
 
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

UDFToDouble

public UDFToDouble()
Method Detail

evaluate

public Double evaluate(Void i)
Convert from void to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The void value to convert
Returns:
Double

evaluate

public Double evaluate(Boolean i)
Convert from boolean to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The boolean value to convert
Returns:
Double

evaluate

public Double evaluate(Byte i)
Convert from boolean to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The byte value to convert
Returns:
Double

evaluate

public Double evaluate(Short i)
Convert from short to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The short value to convert
Returns:
Double

evaluate

public Double evaluate(Integer i)
Convert from integer to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The integer value to convert
Returns:
Double

evaluate

public Double evaluate(Long i)
Convert from long to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The long value to convert
Returns:
Double

evaluate

public Double evaluate(Float i)
Convert from float to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The float value to convert
Returns:
Double

evaluate

public Double evaluate(String i)
Convert from string to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The string value to convert
Returns:
Double

evaluate

public Double evaluate(Date i)
Convert from date to a double. This is called for CAST(... AS DOUBLE)

Parameters:
i - The date value to convert
Returns:
Double


Copyright © 2009 The Apache Software Foundation