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