public static class GenericUDAFBloomFilter.GenericUDAFBloomFilterEvaluator extends GenericUDAFEvaluator
GenericUDAFEvaluator.AbstractAggregationBuffer, GenericUDAFEvaluator.AggregationBuffer, GenericUDAFEvaluator.AggregationType, GenericUDAFEvaluator.ModepartitionEvaluator| Constructor and Description |
|---|
GenericUDAFBloomFilterEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
int |
estimate()
Although similar to AbstractAggregationBuffer::estimate(), it differs from it in 2 aspects
1) This avoids creation of AggregationBuffer which may result in large memory allocation
2) This is used only while compiling query as oppose to AbstractAggregationBuffer version
which may be used in both runtime as well as compile time.
|
long |
getExpectedEntries() |
String |
getExprString()
Optional information to add to expression string.
|
float |
getFactor() |
long |
getMinEntries() |
GenericUDAFEvaluator.AggregationBuffer |
getNewAggregationBuffer()
Get a new aggregation object.
|
Operator<?> |
getSourceOperator() |
boolean |
hasHintEntries() |
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 |
setFactor(float factor) |
void |
setHintEntries(long hintEntries) |
void |
setMaxEntries(long maxEntries) |
void |
setMinEntries(long minEntries) |
void |
setSourceOperator(SelectOperator sourceOperator) |
Object |
terminate(GenericUDAFEvaluator.AggregationBuffer agg)
Get final aggregation result.
|
Object |
terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg)
Get partial aggregation result.
|
aggregate, close, configure, createPartitionEvaluator, evaluate, getPartitionWindowingEvaluator, getWindowingEvaluator, isEstimablepublic 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 estimate()
GenericUDAFEvaluatorestimate in class GenericUDAFEvaluatorpublic void reset(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorreset in class GenericUDAFEvaluatorHiveExceptionpublic GenericUDAFEvaluator.AggregationBuffer getNewAggregationBuffer() throws HiveException
GenericUDAFEvaluatorgetNewAggregationBuffer in class GenericUDAFEvaluatorHiveExceptionpublic void iterate(GenericUDAFEvaluator.AggregationBuffer agg, Object[] parameters) throws HiveException
GenericUDAFEvaluatoriterate in class GenericUDAFEvaluatorparameters - The objects of parameters.HiveExceptionpublic 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 GenericUDAFEvaluatorHiveExceptionpublic Object terminatePartial(GenericUDAFEvaluator.AggregationBuffer agg) throws HiveException
GenericUDAFEvaluatorterminatePartial in class GenericUDAFEvaluatorHiveExceptionpublic long getExpectedEntries()
public Operator<?> getSourceOperator()
public void setSourceOperator(SelectOperator sourceOperator)
public void setHintEntries(long hintEntries)
public boolean hasHintEntries()
public void setMaxEntries(long maxEntries)
public void setMinEntries(long minEntries)
public long getMinEntries()
public void setFactor(float factor)
public float getFactor()
public String getExprString()
GenericUDAFEvaluatorgetExprString in class GenericUDAFEvaluatorCopyright © 2022 The Apache Software Foundation. All rights reserved.