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