public class UDFSign extends UDF
Constructor and Description |
---|
UDFSign() |
Modifier and Type | Method and Description |
---|---|
DoubleWritable |
evaluate(DoubleWritable a)
Take sign of a
|
org.apache.hadoop.io.IntWritable |
evaluate(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable decWritable)
Get the sign of the decimal input
|
DoubleWritable |
evaluate(org.apache.hadoop.io.LongWritable a) |
getRequiredFiles, getRequiredJars, getResolver, setResolver
public DoubleWritable evaluate(DoubleWritable a)
public DoubleWritable evaluate(org.apache.hadoop.io.LongWritable a)
public org.apache.hadoop.io.IntWritable evaluate(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable decWritable)
dec
- decimal inputCopyright © 2022 The Apache Software Foundation. All rights reserved.