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

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

public class UDFToFloat
extends UDF


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

UDFToFloat

public UDFToFloat()
Method Detail

evaluate

public Float evaluate(Void i)
Convert from void to a float. This is called for CAST(... AS FLOAT)

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

evaluate

public Float evaluate(Boolean i)
Convert from boolean to a float. This is called for CAST(... AS FLOAT)

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

evaluate

public Float evaluate(Byte i)
Convert from byte to a float. This is called for CAST(... AS FLOAT)

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

evaluate

public Float evaluate(Short i)
Convert from short to a float. This is called for CAST(... AS FLOAT)

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

evaluate

public Float evaluate(Integer i)
Convert from integer to a float. This is called for CAST(... AS FLOAT)

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

evaluate

public Float evaluate(Long i)
Convert from long to a float. This is called for CAST(... AS FLOAT)

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

evaluate

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

Parameters:
i - The double value to convert
Returns:
Float

evaluate

public Float evaluate(String i)
Convert from string to a float. This is called for CAST(... AS FLOAT)

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

evaluate

public Float evaluate(Date i)
Convert from date to a float. This is called for CAST(... AS FLOAT)

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


Copyright © 2009 The Apache Software Foundation