|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator
org.apache.hadoop.hive.ql.udf.generic.GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator
public abstract static class GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator |
|---|
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.Mode |
| Constructor Summary | |
|---|---|
GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator |
|---|
aggregate, close, configure, evaluate, isEstimable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericUDAFLeadLag.GenericUDAFLeadLagEvaluator()
| Method Detail |
|---|
public ObjectInspector init(GenericUDAFEvaluator.Mode m,
ObjectInspector[] parameters)
throws HiveException
GenericUDAFEvaluator
init 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
HiveException
public GenericUDAFEvaluator.AggregationBuffer getNewAggregationBuffer()
throws HiveException
GenericUDAFEvaluator
getNewAggregationBuffer in class GenericUDAFEvaluatorHiveException
public void reset(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
reset in class GenericUDAFEvaluatorHiveException
public void iterate(GenericUDAFEvaluator.AggregationBuffer agg,
Object[] parameters)
throws HiveException
GenericUDAFEvaluator
iterate in class GenericUDAFEvaluatorparameters - The objects of parameters.
HiveException
public Object terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
terminatePartial in class GenericUDAFEvaluatorHiveException
public void merge(GenericUDAFEvaluator.AggregationBuffer agg,
Object partial)
throws HiveException
GenericUDAFEvaluator
merge in class GenericUDAFEvaluatorpartial - The partial aggregation result.
HiveException
public Object terminate(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
terminate in class GenericUDAFEvaluatorHiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||