public static class GenericUDAFRank.GenericUDAFHypotheticalSetRankEvaluator extends GenericUDAFEvaluator
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GenericUDAFRank.GenericUDAFHypotheticalSetRankEvaluator.CompareResult |
protected static class |
GenericUDAFRank.GenericUDAFHypotheticalSetRankEvaluator.HypotheticalSetRankBuffer |
protected static class |
GenericUDAFRank.GenericUDAFHypotheticalSetRankEvaluator.RankAssets |
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.Mode| Modifier and Type | Field and Description |
|---|---|
static String |
COUNT_FIELD |
static ObjectInspector |
PARTIAL_RANK_OI |
static String |
RANK_FIELD |
partitionEvaluator| Constructor and Description |
|---|
GenericUDAFHypotheticalSetRankEvaluator() |
GenericUDAFHypotheticalSetRankEvaluator(boolean allowEquality,
ObjectInspector partialOutputOI,
ObjectInspector finalOI) |
| Modifier and Type | Method and Description |
|---|---|
protected GenericUDAFRank.GenericUDAFHypotheticalSetRankEvaluator.CompareResult |
compare(Object[] parameters) |
GenericUDAFEvaluator.AggregationBuffer |
getNewAggregationBuffer()
Get a new aggregation object.
|
ObjectInspector |
init(GenericUDAFEvaluator.Mode m,
ObjectInspector[] parameters)
Initialize the evaluator.
|
protected void |
initPartial2AndFinalOI(ObjectInspector[] parameters) |
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.
|
Object |
terminate(GenericUDAFEvaluator.AggregationBuffer agg)
Get final aggregation result.
|
Object |
terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
Get partial aggregation result.
|
aggregate, close, configure, createPartitionEvaluator, estimate, evaluate, getExprString, getPartitionWindowingEvaluator, getWindowingEvaluator, isEstimablepublic static final String RANK_FIELD
public static final String COUNT_FIELD
public static final ObjectInspector PARTIAL_RANK_OI
public GenericUDAFHypotheticalSetRankEvaluator()
public GenericUDAFHypotheticalSetRankEvaluator(boolean allowEquality,
ObjectInspector partialOutputOI,
ObjectInspector finalOI)
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).HiveExceptionprotected void initPartial2AndFinalOI(ObjectInspector[] parameters)
public 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.HiveExceptionprotected GenericUDAFRank.GenericUDAFHypotheticalSetRankEvaluator.CompareResult compare(Object[] parameters)
public 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 © 2024 The Apache Software Foundation. All rights reserved.