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

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

public class UDFToShort
extends UDF


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

UDFToShort

public UDFToShort()
Method Detail

evaluate

public Short evaluate(Void i)
Convert from void to a short. This is called for CAST(... AS SMALLINT)

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

evaluate

public Short evaluate(Boolean i)
Convert from boolean to a short. This is called for CAST(... AS SMALLINT)

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

evaluate

public Short evaluate(Byte i)
Convert from byte to a short. This is called for CAST(... AS SMALLINT)

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

evaluate

public Short evaluate(Integer i)
Convert from integer to a short. This is called for CAST(... AS SMALLINT)

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

evaluate

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

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

evaluate

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

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

evaluate

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

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

evaluate

public Short evaluate(String i)
Convert from string to a short. This is called for CAST(... AS SMALLINT)

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

evaluate

public Short evaluate(Date i)
Convert from date to a short. This is called for CAST(... AS SMALLINT)

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


Copyright © 2009 The Apache Software Foundation