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(HiveDecimalWritable dec)
Get the sign of the decimal input
|
getRequiredFiles, getRequiredJars, getResolver, setResolverpublic DoubleWritable evaluate(DoubleWritable a)
public org.apache.hadoop.io.IntWritable evaluate(HiveDecimalWritable dec)
dec - decimal inputCopyright © 2017 The Apache Software Foundation. All rights reserved.