org.apache.hadoop.hive.ql.udf.generic
Class GenericUDFOPPlus
java.lang.Object
org.apache.hadoop.hive.ql.udf.generic.GenericUDF
org.apache.hadoop.hive.ql.udf.generic.GenericUDFBaseNumeric
org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPPlus
- All Implemented Interfaces:
- Closeable
public class GenericUDFOPPlus
- extends GenericUDFBaseNumeric
The reason that we list evaluate methods with all numeric types is for both
better performance and type checking (so we know int + int is still an int
instead of a double); otherwise a single method that takes (Number a, Number
b) and use a.doubleValue() == b.doubleValue() is enough.
The case of int + double will be handled by implicit type casting using
UDFRegistry.implicitConvertable method.
GenericUDFOPPlus
public GenericUDFOPPlus()
Copyright © 2014 The Apache Software Foundation. All rights reserved.