public class UDFToInteger extends UDF
| Constructor and Description |
|---|
UDFToInteger() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.io.BooleanWritable i)
Convert from boolean to an integer.
|
org.apache.hadoop.io.IntWritable |
evaluate(ByteWritable i)
Convert from byte to an integer.
|
org.apache.hadoop.io.IntWritable |
evaluate(DoubleWritable i)
Convert from double to an integer.
|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.io.FloatWritable i)
Convert from float to an integer.
|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable i) |
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.io.LongWritable i)
Convert from long to an integer.
|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.io.NullWritable i)
Convert from void to an integer.
|
org.apache.hadoop.io.IntWritable |
evaluate(RecordIdentifier i)
Convert a RecordIdentifier.
|
org.apache.hadoop.io.IntWritable |
evaluate(ShortWritable i)
Convert from short to an integer.
|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.io.Text i)
Convert from string to an integer.
|
org.apache.hadoop.io.IntWritable |
evaluate(TimestampWritableV2 i)
Convert from Timestamp to an integer.
|
getRequiredFiles, getRequiredJars, getResolver, setResolverpublic org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.NullWritable i)
i - The void value to convertpublic org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.BooleanWritable i)
i - The boolean value to convertpublic org.apache.hadoop.io.IntWritable evaluate(ByteWritable i)
i - The byte value to convertpublic org.apache.hadoop.io.IntWritable evaluate(ShortWritable i)
i - The short value to convertpublic org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.LongWritable i)
i - The long value to convertpublic org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.FloatWritable i)
i - The float value to convertpublic org.apache.hadoop.io.IntWritable evaluate(DoubleWritable i)
i - The double value to convertpublic org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.io.Text i)
i - The string value to convertpublic org.apache.hadoop.io.IntWritable evaluate(TimestampWritableV2 i)
i - The Timestamp value to convertpublic org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable i)
public org.apache.hadoop.io.IntWritable evaluate(RecordIdentifier i)
i - RecordIdentifier to convertCopyright © 2019 The Apache Software Foundation. All Rights Reserved.