public class UDFToLong extends UDF
Constructor and Description |
---|
UDFToLong() |
Modifier and Type | Method and Description |
---|---|
LongWritable |
evaluate(BooleanWritable i)
Convert from boolean to a long.
|
LongWritable |
evaluate(ByteWritable i)
Convert from byte to a long.
|
LongWritable |
evaluate(DoubleWritable i)
Convert from double to a long.
|
LongWritable |
evaluate(FloatWritable i)
Convert from float to a long.
|
LongWritable |
evaluate(HiveDecimalWritable i) |
LongWritable |
evaluate(IntWritable i)
Convert from integer to a long.
|
LongWritable |
evaluate(LongWritable i)
Convert from long to a long.
|
LongWritable |
evaluate(NullWritable i)
Convert from void to a long.
|
LongWritable |
evaluate(ShortWritable i)
Convert from short to a long.
|
LongWritable |
evaluate(Text i)
Convert from string to a long.
|
LongWritable |
evaluate(TimestampWritable i) |
getRequiredFiles, getRequiredJars, getResolver, setResolver
public LongWritable evaluate(NullWritable i)
i
- The void value to convertpublic LongWritable evaluate(BooleanWritable i)
i
- The boolean value to convertpublic LongWritable evaluate(ByteWritable i)
i
- The byte value to convertpublic LongWritable evaluate(ShortWritable i)
i
- The short value to convertpublic LongWritable evaluate(IntWritable i)
i
- The integer value to convertpublic LongWritable evaluate(LongWritable i)
i
- The long value to convertpublic LongWritable evaluate(FloatWritable i)
i
- The float value to convertpublic LongWritable evaluate(DoubleWritable i)
i
- The double value to convertpublic LongWritable evaluate(Text i)
i
- The string value to convertpublic LongWritable evaluate(TimestampWritable i)
public LongWritable evaluate(HiveDecimalWritable i)
Copyright © 2012 The Apache Software Foundation