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