|
||||||||||
| 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.hive.builtins.UDAFUnionMap.Evaluator
public static class UDAFUnionMap.Evaluator
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator |
|---|
GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.Mode |
| Constructor Summary | |
|---|---|
UDAFUnionMap.Evaluator()
|
|
| Method Summary | |
|---|---|
GenericUDAFEvaluator.AggregationBuffer |
getNewAggregationBuffer()
Get a new aggregation object. |
ObjectInspector |
init(GenericUDAFEvaluator.Mode m,
ObjectInspector[] parameters)
Initialize the evaluator. |
void |
iterate(GenericUDAFEvaluator.AggregationBuffer agg,
Object[] input)
Iterate through original data. |
void |
merge(GenericUDAFEvaluator.AggregationBuffer agg,
Object partial)
Merge with partial aggregation result. |
void |
reset(GenericUDAFEvaluator.AggregationBuffer agg)
Reset the aggregation. |
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, evaluate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDAFUnionMap.Evaluator()
| 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).
HiveException
public GenericUDAFEvaluator.AggregationBuffer getNewAggregationBuffer()
throws HiveException
GenericUDAFEvaluator
getNewAggregationBuffer in class GenericUDAFEvaluatorHiveException
public void iterate(GenericUDAFEvaluator.AggregationBuffer agg,
Object[] input)
throws HiveException
GenericUDAFEvaluator
iterate in class GenericUDAFEvaluatorinput - The objects of parameters.
HiveException
public void merge(GenericUDAFEvaluator.AggregationBuffer agg,
Object partial)
throws HiveException
GenericUDAFEvaluator
merge in class GenericUDAFEvaluatorpartial - The partial aggregation result.
HiveException
public void reset(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
reset in class GenericUDAFEvaluatorHiveException
public Object terminate(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
terminate in class GenericUDAFEvaluatorHiveException
public Object terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
terminatePartial in class GenericUDAFEvaluatorHiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||