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