public abstract static class GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator extends GenericUDAFEvaluator
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.Mode| Modifier | Constructor and Description |
|---|---|
|
GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator() |
protected |
GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator(GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator src) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAmt() |
String |
getFnName() |
GenericUDAFEvaluator.AggregationBuffer |
getNewAggregationBuffer()
Get a new aggregation object.
|
protected abstract org.apache.hadoop.hive.ql.udf.generic.LeadLagBuffer |
getNewLLBuffer() |
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.
|
void |
reset(GenericUDAFEvaluator.AggregationBuffer agg)
Reset the aggregation.
|
void |
setAmt(int amt) |
void |
setFnName(String fnName) |
Object |
terminate(GenericUDAFEvaluator.AggregationBuffer agg)
Get final aggregation result.
|
Object |
terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
Get partial aggregation result.
|
aggregate, close, configure, evaluate, getWindowingEvaluator, isEstimablepublic GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator()
protected GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator(GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator src)
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 int getAmt()
public void setAmt(int amt)
public String getFnName()
public void setFnName(String fnName)
protected abstract org.apache.hadoop.hive.ql.udf.generic.LeadLagBuffer getNewLLBuffer()
throws HiveException
HiveExceptionpublic GenericUDAFEvaluator.AggregationBuffer getNewAggregationBuffer() throws HiveException
GenericUDAFEvaluatorgetNewAggregationBuffer in class GenericUDAFEvaluatorHiveExceptionpublic void reset(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorreset in class GenericUDAFEvaluatorHiveExceptionpublic 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 void merge(GenericUDAFEvaluator.AggregationBuffer agg, Object partial) throws HiveException
GenericUDAFEvaluatormerge in class GenericUDAFEvaluatorpartial - The partial aggregation result.HiveExceptionpublic Object terminate(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorterminate in class GenericUDAFEvaluatorHiveExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.