public abstract static class GenericUDAFPercentileApprox.GenericUDAFPercentileApproxEvaluator extends GenericUDAFEvaluator
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.Mode| Modifier and Type | Field and Description |
|---|---|
protected PrimitiveObjectInspector |
inputOI |
protected StandardListObjectInspector |
loi |
protected java.lang.Integer |
nbins |
protected double[] |
quantiles |
| Constructor and Description |
|---|
GenericUDAFPercentileApproxEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
GenericUDAFEvaluator.AggregationBuffer |
getNewAggregationBuffer()
Get a new aggregation object.
|
protected double[] |
getQuantileArray(ConstantObjectInspector quantileOI) |
void |
iterate(GenericUDAFEvaluator.AggregationBuffer agg,
java.lang.Object[] parameters)
Iterate through original data.
|
void |
merge(GenericUDAFEvaluator.AggregationBuffer agg,
java.lang.Object partial)
Merge with partial aggregation result.
|
void |
reset(GenericUDAFEvaluator.AggregationBuffer agg)
Reset the aggregation.
|
java.lang.Object |
terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
Get partial aggregation result.
|
aggregate, close, configure, evaluate, init, isEstimable, terminateprotected PrimitiveObjectInspector inputOI
protected double[] quantiles
protected java.lang.Integer nbins
protected transient StandardListObjectInspector loi
public GenericUDAFPercentileApproxEvaluator()
public void merge(GenericUDAFEvaluator.AggregationBuffer agg, java.lang.Object partial) throws HiveException
GenericUDAFEvaluatormerge in class GenericUDAFEvaluatorpartial - The partial aggregation result.HiveExceptionpublic java.lang.Object terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorterminatePartial in class GenericUDAFEvaluatorHiveExceptionpublic void iterate(GenericUDAFEvaluator.AggregationBuffer agg, java.lang.Object[] parameters) throws HiveException
GenericUDAFEvaluatoriterate in class GenericUDAFEvaluatorparameters - The objects of parameters.HiveExceptionpublic GenericUDAFEvaluator.AggregationBuffer getNewAggregationBuffer() throws HiveException
GenericUDAFEvaluatorgetNewAggregationBuffer in class GenericUDAFEvaluatorHiveExceptionprotected double[] getQuantileArray(ConstantObjectInspector quantileOI) throws HiveException
HiveExceptionpublic void reset(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorreset in class GenericUDAFEvaluatorHiveExceptionCopyright © 2012 The Apache Software Foundation