Package org.apache.hadoop.hive.ql.udf.generic

Standard toolkit and framework for generic User-defined functions.

See:
          Description

Interface Summary
Collector Collector gets data from a source.
GenericUDAFEvaluator.AggregationBuffer The interface for a class that is used to store the aggregation result during the process of aggregation.
GenericUDAFParameterInfo A callback interface used in conjunction with GenericUDAFResolver2 interface that allows for a more extensible and flexible means of discovering the parameter types provided for UDAF invocation.
GenericUDAFResolver Deprecated. Use GenericUDAFResolver2 instead.
GenericUDAFResolver2 This interface extends the GenericUDAFResolver interface and provides more flexibility in terms of discovering the parameter types supplied to the UDAF.
GenericUDF.DeferredObject A Defered Object allows us to do lazy-evaluation and short-circuiting.
 

Class Summary
AbstractGenericUDAFResolver An abstract class to help facilitate existing implementations of GenericUDAFResolver to migrate towards the newly introduced interface GenericUDAFResolver2.
GenericUDAFAverage GenericUDAFAverage.
GenericUDAFAverage.GenericUDAFAverageEvaluator GenericUDAFAverageEvaluator.
GenericUDAFBridge This class is a bridge between GenericUDAF and UDAF.
GenericUDAFBridge.GenericUDAFBridgeEvaluator GenericUDAFBridgeEvaluator.
GenericUDAFCount This class implements the COUNT aggregation function as in SQL.
GenericUDAFCount.GenericUDAFCountEvaluator GenericUDAFCountEvaluator.
GenericUDAFEvaluator A Generic User-defined aggregation function (GenericUDAF) for the use with Hive.
GenericUDAFHistogramNumeric Computes an approximate histogram of a numerical column using a user-specified number of bins.
GenericUDAFHistogramNumeric.GenericUDAFHistogramNumericEvaluator Construct a histogram using the algorithm described by Ben-Haim and Tom-Tov.
GenericUDAFMax  
GenericUDAFMax.GenericUDAFMaxEvaluator  
GenericUDAFMin  
GenericUDAFMin.GenericUDAFMinEvaluator  
GenericUDAFStd Compute the standard deviation by extending GenericUDAFVariance and overriding the terminate() method of the evaluator.
GenericUDAFStd.GenericUDAFStdEvaluator Compute the standard deviation by extending GenericUDAFVarianceEvaluator and overriding the terminate() method of the evaluator.
GenericUDAFStdSample Compute the sample standard deviation by extending GenericUDAFVariance and overriding the terminate() method of the evaluator.
GenericUDAFStdSample.GenericUDAFStdSampleEvaluator Compute the sample standard deviation by extending GenericUDAFVarianceEvaluator and overriding the terminate() method of the evaluator.
GenericUDAFSum GenericUDAFSum.
GenericUDAFSum.GenericUDAFSumDouble GenericUDAFSumDouble.
GenericUDAFSum.GenericUDAFSumLong GenericUDAFSumLong.
GenericUDAFVariance Compute the variance.
GenericUDAFVariance.GenericUDAFVarianceEvaluator Evaluate the variance using the algorithm described by Chan, Golub, and LeVeque in "Algorithms for computing the sample variance: analysis and recommendations" The American Statistician, 37 (1983) pp.
GenericUDAFVarianceSample Compute the sample variance by extending GenericUDAFVariance and overriding the terminate() method of the evaluator.
GenericUDAFVarianceSample.GenericUDAFVarianceSampleEvaluator Compute the sample variance by extending GenericUDAFVarianceEvaluator and overriding the terminate() method of the evaluator.
GenericUDF A Generic User-defined function (GenericUDF) for the use with Hive.
GenericUDFArray GenericUDFArray.
GenericUDFArrayContains GenericUDFArrayContains.
GenericUDFBridge GenericUDFBridge encapsulates UDF to provide the same interface as GenericUDF.
GenericUDFCase GenericUDF Class for SQL construct "CASE WHEN a THEN b WHEN c THEN d [ELSE f] END".
GenericUDFCoalesce GenericUDF Class for SQL construct "COALESCE(a, b, c)".
GenericUDFConcatWS Generic UDF for string function CONCAT_WS(sep,str1,str2,str3,...).
GenericUDFElt Generic UDF for string function ELT(N,str1,str2,str3,...).
GenericUDFField GenericUDFField.
GenericUDFHash GenericUDF Class for computing hash values.
GenericUDFIf IF(expr1,expr2,expr3)
If expr1 is TRUE (expr1 <> 0 and expr1 <> NULL) then IF() returns expr2; otherwise it returns expr3.
GenericUDFIn GenericUDFIn Example usage: SELECT key FROM src WHERE key IN ("238", "1"); From MySQL page on IN(): To comply with the SQL standard, IN returns NULL not only if the expression on the left hand side is NULL, but also if no match is found in the list and one of the expressions in the list is NULL.
GenericUDFIndex GenericUDFIndex.
GenericUDFInstr Generic UDF for string function INSTR(str,substr).
GenericUDFLocate Generic UDF for string function LOCATE(substr, str), LOCATE(substr, str, start).
GenericUDFMap GenericUDFMap.
GenericUDFOPNotNull GenericUDFOPNotNull.
GenericUDFOPNull GenericUDFOPNull.
GenericUDFSize GenericUDFSize.
GenericUDFSplit GenericUDFSplit.
GenericUDFStruct  
GenericUDFUtils Util functions for GenericUDF classes.
GenericUDFUtils.ConversionHelper Convert parameters for the method if needed.
GenericUDFUtils.ReturnObjectInspectorResolver This class helps to find the return ObjectInspector for a GenericUDF.
GenericUDFWhen GenericUDF Class for SQL construct "CASE a WHEN b THEN c [ELSE f] END".
GenericUDTF A Generic User-defined Table Generating Function (UDTF) Generates a variable number of output rows for a single input row.
GenericUDTFExplode GenericUDTFExplode.
SimpleGenericUDAFParameterInfo A simple implementation of GenericUDAFParameterInfo.
UDTFCollector UDTFCollector collects data from a GenericUDTF and passes the data to a UDTFOperator.
 

Enum Summary
GenericUDAFEvaluator.Mode Mode.
 

Package org.apache.hadoop.hive.ql.udf.generic Description

Standard toolkit and framework for generic User-defined functions.



Copyright © 2010 The Apache Software Foundation