public static class GenericUDAFPercentileApprox.GenericUDAFSinglePercentileApproxEvaluator extends GenericUDAFPercentileApprox.GenericUDAFPercentileApproxEvaluator
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.ModeinputOI, loi, nbins, quantiles| Constructor and Description |
|---|
GenericUDAFPercentileApprox.GenericUDAFSinglePercentileApproxEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
ObjectInspector |
init(GenericUDAFEvaluator.Mode m,
ObjectInspector[] parameters)
Initialize the evaluator.
|
Object |
terminate(GenericUDAFEvaluator.AggregationBuffer agg)
Get final aggregation result.
|
getNewAggregationBuffer, getQuantileArray, iterate, merge, reset, terminatePartialaggregate, close, configure, evaluate, getWindowingEvaluator, isEstimablepublic GenericUDAFPercentileApprox.GenericUDAFSinglePercentileApproxEvaluator()
public ObjectInspector init(GenericUDAFEvaluator.Mode m, ObjectInspector[] parameters) throws HiveException
GenericUDAFEvaluatorinit in class GenericUDAFEvaluatorm - The mode of aggregation.parameters - The ObjectInspector for the parameters: In PARTIAL1 and COMPLETE
mode, the parameters are original data; In PARTIAL2 and FINAL
mode, the parameters are just partial aggregations (in that case,
the array will always have a single element).HiveExceptionpublic Object terminate(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorterminate in class GenericUDAFEvaluatorHiveExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.