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

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.GenericUDFOPDivide
All Implemented Interfaces:
Closeable

public class GenericUDFOPDivide
extends GenericUDFBaseNumeric

Note that in SQL, the return type of divide is not necessarily the same as the parameters. For example, 3 / 2 = 1.5, not 1. To follow SQL, we always return a decimal for divide.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
 
Constructor Summary
GenericUDFOPDivide()
           
 
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

GenericUDFOPDivide

public GenericUDFOPDivide()


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