public abstract static class GenericUDAFSum.GenericUDAFSumEvaluator<ResultType> extends GenericUDAFEvaluator
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.Mode
Modifier and Type | Field and Description |
---|---|
protected PrimitiveObjectInspector |
inputOI |
protected ObjectInspector |
outputOI |
protected ResultType |
result |
protected boolean |
sumDistinct |
Constructor and Description |
---|
GenericUDAFSumEvaluator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDistinct(org.apache.hadoop.hive.ql.udf.generic.GenericUDAFSum.GenericUDAFSumEvaluator.SumAgg agg,
Object input)
Check if the input object is the same as the previous one for the case of
SUM(DISTINCT).
|
void |
setSumDistinct(boolean sumDistinct) |
boolean |
sumDistinct() |
aggregate, close, configure, evaluate, getNewAggregationBuffer, getWindowingEvaluator, init, isEstimable, iterate, merge, reset, terminate, terminatePartial
protected PrimitiveObjectInspector inputOI
protected ObjectInspector outputOI
protected ResultType result
protected boolean sumDistinct
public boolean sumDistinct()
public void setSumDistinct(boolean sumDistinct)
protected boolean checkDistinct(org.apache.hadoop.hive.ql.udf.generic.GenericUDAFSum.GenericUDAFSumEvaluator.SumAgg agg, Object input)
input
- the input objectCopyright © 2016 The Apache Software Foundation. All rights reserved.