public static class GenericUDAFRowNumber.GenericUDAFRowNumberEvaluator extends GenericUDAFRowNumber.GenericUDAFAbstractRowNumberEvaluator implements ISupportStreamingModeForWindowing
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.ModepartitionEvaluatorNULL_RESULT| Constructor and Description |
|---|
GenericUDAFRowNumberEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getNextResult(GenericUDAFEvaluator.AggregationBuffer agg) |
int |
getRowsRemainingAfterTerminate() |
GenericUDAFEvaluator |
getWindowingEvaluator(WindowFrameDef wFrmDef)
When evaluating an aggregates over a fixed Window, the naive way to compute
results is to compute the aggregate for each row.
|
getNewAggregationBuffer, init, isStreaming, iterate, merge, reset, terminate, terminatePartialaggregate, close, configure, createPartitionEvaluator, estimate, evaluate, getExprString, getPartitionWindowingEvaluator, isEstimablepublic Object getNextResult(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
getNextResult in interface ISupportStreamingModeForWindowingHiveExceptionpublic GenericUDAFEvaluator getWindowingEvaluator(WindowFrameDef wFrmDef)
GenericUDAFEvaluatorThis method is called after this Evaluator is initialized. The returned Function must be initialized. It is passed the 'window' of aggregation for each row.
getWindowingEvaluator in class GenericUDAFEvaluatorwFrmDef - the Window definition in play for this evaluation.public int getRowsRemainingAfterTerminate()
throws HiveException
getRowsRemainingAfterTerminate in interface ISupportStreamingModeForWindowingHiveExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.