|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.exec.UDF
org.apache.hadoop.hive.ql.udf.UDFToInteger
public class UDFToInteger
UDFToInteger.
| Constructor Summary | |
|---|---|
UDFToInteger()
|
|
| Method Summary | |
|---|---|
IntWritable |
evaluate(BigDecimalWritable i)
|
IntWritable |
evaluate(BooleanWritable i)
Convert from boolean to an integer. |
IntWritable |
evaluate(ByteWritable i)
Convert from byte to an integer. |
IntWritable |
evaluate(DoubleWritable i)
Convert from double to an integer. |
IntWritable |
evaluate(FloatWritable i)
Convert from float to an integer. |
IntWritable |
evaluate(LongWritable i)
Convert from long to an integer. |
IntWritable |
evaluate(NullWritable i)
Convert from void to an integer. |
IntWritable |
evaluate(ShortWritable i)
Convert from short to an integer. |
IntWritable |
evaluate(Text i)
Convert from string to an integer. |
IntWritable |
evaluate(TimestampWritable i)
Convert from Timestamp to an integer. |
| Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF |
|---|
getRequiredFiles, getRequiredJars, getResolver, setResolver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDFToInteger()
| Method Detail |
|---|
public IntWritable evaluate(NullWritable i)
i - The void value to convert
public IntWritable evaluate(BooleanWritable i)
i - The boolean value to convert
public IntWritable evaluate(ByteWritable i)
i - The byte value to convert
public IntWritable evaluate(ShortWritable i)
i - The short value to convert
public IntWritable evaluate(LongWritable i)
i - The long value to convert
public IntWritable evaluate(FloatWritable i)
i - The float value to convert
public IntWritable evaluate(DoubleWritable i)
i - The double value to convert
public IntWritable evaluate(Text i)
i - The string value to convert
public IntWritable evaluate(TimestampWritable i)
i - The Timestamp value to convert
public IntWritable evaluate(BigDecimalWritable i)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||