org.apache.hadoop.hive.ql.udf.generic
Class GenericUDFOPPlus

java.lang.Object
  extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDF
      extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDFBaseNumeric
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
 
Constructor Summary
GenericUDFOPPlus()
           
 
Method Summary
 
Methods inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDFBaseNumeric
copyToNewInstance, evaluate, getDisplayString, initialize
 
Methods inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
close, configure, flip, getRequiredFiles, getRequiredJars, getUdfName, initializeAndFoldConstants
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericUDFOPPlus

public GenericUDFOPPlus()


Copyright © 2014 The Apache Software Foundation. All rights reserved.