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