public static class GenericUDAFPercentileApprox.GenericUDAFSinglePercentileApproxEvaluator extends GenericUDAFPercentileApprox.GenericUDAFPercentileApproxEvaluator
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.Mode
inputOI, 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, terminatePartial
aggregate, close, configure, evaluate, getWindowingEvaluator, isEstimable
public GenericUDAFPercentileApprox.GenericUDAFSinglePercentileApproxEvaluator()
public ObjectInspector init(GenericUDAFEvaluator.Mode m, ObjectInspector[] parameters) throws HiveException
GenericUDAFEvaluator
init
in class GenericUDAFEvaluator
m
- 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).HiveException
public Object terminate(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluator
terminate
in class GenericUDAFEvaluator
HiveException
Copyright © 2017 The Apache Software Foundation. All rights reserved.