org.apache.hadoop.hive.ql.udf
Class UDFSign
java.lang.Object
org.apache.hadoop.hive.ql.exec.UDF
org.apache.hadoop.hive.ql.udf.UDFSign
public class UDFSign
- extends UDF
UDFSign
public UDFSign()
evaluate
public DoubleWritable evaluate(DoubleWritable a)
- Take sign of a
evaluate
public org.apache.hadoop.io.IntWritable evaluate(HiveDecimalWritable dec)
- Get the sign of the decimal input
- Parameters:
dec
- decimal input
- Returns:
- -1, 0, or 1 representing the sign of the input decimal
Copyright © 2014 The Apache Software Foundation. All rights reserved.