Class DataToDoubleSummarySketchUDAF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.udf.generic.AbstractGenericUDAFResolver
-
- org.apache.datasketches.hive.tuple.DataToSketchUDAF
-
- org.apache.datasketches.hive.tuple.DataToDoubleSummarySketchUDAF
-
- All Implemented Interfaces:
org.apache.hadoop.hive.ql.udf.generic.GenericUDAFResolver,org.apache.hadoop.hive.ql.udf.generic.GenericUDAFResolver2
public class DataToDoubleSummarySketchUDAF extends DataToSketchUDAF
This simple implementation is to give an example of a concrete UDAF based on the abstract DataToSketchUDAF if no extra arguments are needed. The same functionality is included into DataToDoubleSummaryWithModeSketchUDAF with the default summary mode of Sum, but the implementation is more complex because of the extra argument.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.datasketches.hive.tuple.DataToSketchUDAF
DataToSketchUDAF.DataToSketchEvaluator<U,S extends org.apache.datasketches.tuple.UpdatableSummary<U>>
-
-
Constructor Summary
Constructors Constructor Description DataToDoubleSummarySketchUDAF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluatorcreateEvaluator()This is needed because a concrete UDAF is going to have its own concrete evaluator static inner class.org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluatorgetEvaluator(org.apache.hadoop.hive.ql.udf.generic.GenericUDAFParameterInfo info)-
Methods inherited from class org.apache.datasketches.hive.tuple.DataToSketchUDAF
checkExtraArguments
-
-
-
-
Method Detail
-
getEvaluator
public org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator getEvaluator(org.apache.hadoop.hive.ql.udf.generic.GenericUDAFParameterInfo info) throws org.apache.hadoop.hive.ql.parse.SemanticException- Specified by:
getEvaluatorin interfaceorg.apache.hadoop.hive.ql.udf.generic.GenericUDAFResolver2- Overrides:
getEvaluatorin classDataToSketchUDAF- Throws:
org.apache.hadoop.hive.ql.parse.SemanticException
-
createEvaluator
public org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator createEvaluator()
Description copied from class:DataToSketchUDAFThis is needed because a concrete UDAF is going to have its own concrete evaluator static inner class.- Specified by:
createEvaluatorin classDataToSketchUDAF- Returns:
- an instance of evaluator
-
-