public class UDFToInteger extends UDF
Constructor and Description |
---|
UDFToInteger() |
Modifier and Type | Method and Description |
---|---|
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(HiveDecimalWritable i) |
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.
|
getRequiredFiles, getRequiredJars, getResolver, setResolver
public IntWritable evaluate(NullWritable i)
i
- The void value to convertpublic IntWritable evaluate(BooleanWritable i)
i
- The boolean value to convertpublic IntWritable evaluate(ByteWritable i)
i
- The byte value to convertpublic IntWritable evaluate(ShortWritable i)
i
- The short value to convertpublic IntWritable evaluate(LongWritable i)
i
- The long value to convertpublic IntWritable evaluate(FloatWritable i)
i
- The float value to convertpublic IntWritable evaluate(DoubleWritable i)
i
- The double value to convertpublic IntWritable evaluate(Text i)
i
- The string value to convertpublic IntWritable evaluate(TimestampWritable i)
i
- The Timestamp value to convertpublic IntWritable evaluate(HiveDecimalWritable i)
Copyright © 2012 The Apache Software Foundation