public abstract class GenericUDAFStreamingEvaluator<T1> extends GenericUDAFEvaluator implements ISupportStreamingModeForWindowing
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericUDAFStreamingEvaluator.SumAvgEnhancer<T1,T2> |
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.Mode| Modifier and Type | Field and Description |
|---|---|
protected WindowFrameDef |
wFrameDef |
protected GenericUDAFEvaluator |
wrappedEval |
partitionEvaluatorNULL_RESULT| Constructor and Description |
|---|
GenericUDAFStreamingEvaluator(GenericUDAFEvaluator wrappedEval,
WindowFrameDef wFrameDef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getNextResult(GenericUDAFEvaluator.AggregationBuffer agg) |
ObjectInspector |
init(GenericUDAFEvaluator.Mode m,
ObjectInspector[] parameters)
Initialize the evaluator.
|
void |
merge(GenericUDAFEvaluator.AggregationBuffer agg,
Object partial)
Merge with partial aggregation result.
|
void |
reset(GenericUDAFEvaluator.AggregationBuffer agg)
Reset the aggregation.
|
Object |
terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
Get partial aggregation result.
|
aggregate, close, configure, createPartitionEvaluator, estimate, evaluate, getExprString, getNewAggregationBuffer, getPartitionWindowingEvaluator, getWindowingEvaluator, isEstimable, iterate, terminateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRowsRemainingAfterTerminateprotected final GenericUDAFEvaluator wrappedEval
protected final WindowFrameDef wFrameDef
public GenericUDAFStreamingEvaluator(GenericUDAFEvaluator wrappedEval, WindowFrameDef wFrameDef)
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 reset(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorreset in class GenericUDAFEvaluatorHiveExceptionpublic Object terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorterminatePartial in class GenericUDAFEvaluatorHiveExceptionpublic void merge(GenericUDAFEvaluator.AggregationBuffer agg, Object partial) throws HiveException
GenericUDAFEvaluatormerge in class GenericUDAFEvaluatorpartial - The partial aggregation result.HiveExceptionpublic Object getNextResult(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
getNextResult in interface ISupportStreamingModeForWindowingHiveExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.