|
||||||||||
| 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.GenericUDAFContextNGrams.GenericUDAFContextNGramEvaluator
public static class GenericUDAFContextNGrams.GenericUDAFContextNGramEvaluator
A constant-space heuristic to estimate the top-k contextual n-grams.
| 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 | |
|---|---|
GenericUDAFContextNGrams.GenericUDAFContextNGramEvaluator()
|
|
| 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[] parameters)
Iterate through original data. |
void |
merge(GenericUDAFEvaluator.AggregationBuffer agg,
Object obj)
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, 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 GenericUDAFContextNGrams.GenericUDAFContextNGramEvaluator()
| 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 void merge(GenericUDAFEvaluator.AggregationBuffer agg,
Object obj)
throws HiveException
GenericUDAFEvaluator
merge in class GenericUDAFEvaluatorobj - The partial aggregation result.
HiveException
public Object terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
terminatePartial 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 terminate(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
terminate in class GenericUDAFEvaluatorHiveException
public GenericUDAFEvaluator.AggregationBuffer getNewAggregationBuffer()
throws HiveException
GenericUDAFEvaluator
getNewAggregationBuffer in class GenericUDAFEvaluatorHiveException
public void reset(GenericUDAFEvaluator.AggregationBuffer agg)
throws HiveException
GenericUDAFEvaluator
reset in class GenericUDAFEvaluatorHiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||