public abstract static class GenericUDAFComputeStats.GenericUDAFNumericStatsEvaluator<V,OI extends PrimitiveObjectInspector> extends GenericUDAFEvaluator
| Modifier and Type | Class and Description |
|---|---|
class |
GenericUDAFComputeStats.GenericUDAFNumericStatsEvaluator.NumericStatsAgg |
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.Mode| Modifier and Type | Field and Description |
|---|---|
protected StructField |
countNullsField |
protected LongObjectInspector |
countNullsFieldOI |
protected PrimitiveObjectInspector |
funcOI |
protected PrimitiveObjectInspector |
inputOI |
protected static int |
MAX_BIT_VECTORS |
protected StructField |
maxField |
protected OI |
maxFieldOI |
protected StructField |
minField |
protected OI |
minFieldOI |
protected StructField |
ndvField |
protected BinaryObjectInspector |
ndvFieldOI |
protected PrimitiveObjectInspector |
numVectorsOI |
protected Object[] |
partialResult |
protected Object[] |
result |
protected StructObjectInspector |
soi |
partitionEvaluator| Constructor and Description |
|---|
GenericUDAFNumericStatsEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OI |
getValueObjectInspector() |
protected abstract OI |
getValueObjectInspector(PrimitiveTypeInfo typeInfo) |
ObjectInspector |
init(GenericUDAFEvaluator.Mode m,
ObjectInspector[] parameters)
Initialize the evaluator.
|
void |
iterate(GenericUDAFEvaluator.AggregationBuffer agg,
Object[] parameters)
Iterate through original data.
|
void |
merge(GenericUDAFEvaluator.AggregationBuffer agg,
Object partial)
Merge with partial aggregation result.
|
Object |
terminate(GenericUDAFEvaluator.AggregationBuffer agg)
Get final aggregation result.
|
Object |
terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
Get partial aggregation result.
|
aggregate, close, configure, createPartitionEvaluator, estimate, evaluate, getExprString, getNewAggregationBuffer, getPartitionWindowingEvaluator, getWindowingEvaluator, isEstimable, resetprotected static final int MAX_BIT_VECTORS
protected transient PrimitiveObjectInspector inputOI
protected transient PrimitiveObjectInspector funcOI
protected transient PrimitiveObjectInspector numVectorsOI
protected transient StructObjectInspector soi
protected transient StructField minField
protected transient OI extends PrimitiveObjectInspector minFieldOI
protected transient StructField maxField
protected transient OI extends PrimitiveObjectInspector maxFieldOI
protected transient StructField countNullsField
protected transient LongObjectInspector countNullsFieldOI
protected transient StructField ndvField
protected transient BinaryObjectInspector ndvFieldOI
protected transient Object[] partialResult
protected transient Object[] result
protected abstract OI getValueObjectInspector()
protected abstract OI getValueObjectInspector(PrimitiveTypeInfo typeInfo)
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 void iterate(GenericUDAFEvaluator.AggregationBuffer agg, Object[] parameters) throws HiveException
GenericUDAFEvaluatoriterate in class GenericUDAFEvaluatorparameters - The objects of parameters.HiveExceptionpublic Object terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorterminatePartial in class GenericUDAFEvaluatorHiveExceptionpublic Object terminate(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorterminate in class GenericUDAFEvaluatorHiveExceptionpublic void merge(GenericUDAFEvaluator.AggregationBuffer agg, Object partial) throws HiveException
GenericUDAFEvaluatormerge in class GenericUDAFEvaluatorpartial - The partial aggregation result.HiveExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.