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

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

public class UDFToLong
extends UDF


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

UDFToLong

public UDFToLong()
Method Detail

evaluate

public Long evaluate(Void i)
Convert from void to a long. This is called for CAST(... AS BIGINT)

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

evaluate

public Long evaluate(Boolean i)
Convert from boolean to a long. This is called for CAST(... AS BIGINT)

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

evaluate

public Long evaluate(Byte i)
Convert from byte to a long. This is called for CAST(... AS BIGINT)

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

evaluate

public Long evaluate(Short i)
Convert from short to a long. This is called for CAST(... AS BIGINT)

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

evaluate

public Long evaluate(Integer i)
Convert from integer to a long. This is called for CAST(... AS BIGINT)

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

evaluate

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

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

evaluate

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

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

evaluate

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

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

evaluate

public Long evaluate(String i)
Convert from string to a long. This is called for CAST(... AS BIGINT)

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

evaluate

public Long evaluate(Date i)
Convert from date to a long. This is called for CAST(... AS BIGINT)

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


Copyright © 2009 The Apache Software Foundation