org.apache.hadoop.hive.ql.exec.description



API Populatity

1 Client projects

Project: org.apache

Project apache/hive in file ...rc.java.org.apache.hadoop.hive.ql.udf.UDAFMax.java (2010-01-07)
@@ -20,6 +20,7 @@
 
 import org.apache.hadoop.hive.ql.exec.UDAF;
 import org.apache.hadoop.hive.ql.exec.UDAFEvaluator;
+import org.apache.hadoop.hive.ql.exec.description;
 import org.apache.hadoop.hive.serde2.io.DoubleWritable;
 import org.apache.hadoop.hive.serde2.io.ShortWritable;
 import org.apache.hadoop.hive.shims.ShimLoader;
@@ -29,7 +30,10 @@
 import org.apache.hadoop.io.Text;
 
 
-
+@description(
+    name = "max",
+    value = "_FUNC_(expr) - Returns the maximum value of expr"
+    )
 public class UDAFMax extends UDAF {
 
   static public class MaxShortEvaluator implements UDAFEvaluator {
Project apache/hive in file ...rc.java.org.apache.hadoop.hive.ql.udf.UDAFMin.java (2010-01-07)
@@ -20,6 +20,7 @@
 
 import org.apache.hadoop.hive.ql.exec.UDAF;
 import org.apache.hadoop.hive.ql.exec.UDAFEvaluator;
+import org.apache.hadoop.hive.ql.exec.description;
 import org.apache.hadoop.hive.serde2.io.DoubleWritable;
 import org.apache.hadoop.hive.serde2.io.ShortWritable;
 import org.apache.hadoop.hive.shims.ShimLoader;
@@ -28,7 +29,10 @@
 import org.apache.hadoop.io.LongWritable;
 import org.apache.hadoop.io.Text;
 
-
+@description(
+    name = "min",
+    value = "_FUNC_(expr) - Returns the minimum value of expr"
+    )
 public class UDAFMin extends UDAF {
 
   static public class MinShortEvaluator implements UDAFEvaluator {
Project apache/hive in file ...java.org.apache.hadoop.hive.ql.udf.UDFOPEqual.java (2009-08-07)
@@ -20,6 +20,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.hive.ql.exec.description;
 import org.apache.hadoop.hive.serde2.io.ByteWritable;
 import org.apache.hadoop.hive.serde2.io.DoubleWritable;
 import org.apache.hadoop.hive.serde2.io.ShortWritable;
@@ -34,6 +35,10 @@
  * better performance; otherwise a single method that takes (Number a, Number b)
  * and use a.doubleValue() == b.doubleValue() is enough.
  */
+@description(
+    name = "=,==",
+    value= "a _FUNC_ b - Returns TRUE if a equals b and false otherwise"
+)
 public class UDFOPEqual extends UDFBaseCompare {
 
   private static Log LOG = LogFactory.getLog(UDFOPEqual.class.getName());