GenericUDAFResolver2 or extend
AbstractGenericUDAFResolver instead.@Deprecated public class UDAF extends Object
init() method, which resets the status of the aggregation function.aggregate that returns boolean.
The method should always return true on valid inputs, or the framework will throw an Exception.
Following are some examples:
public boolean aggregate(double a);public boolean aggregate(int b);public boolean aggregate(double c, double d);evaluate that returns the FINAL aggregation result.
evaluate should never return null or an Exception will be thrown.
Following are some examples:
public int evaluate();public long evaluate();public double evaluate();public Double evaluate();public String evaluate();evaluatePartial that returns the PARTIAL aggregation result.
evaluatePartial should never return null or an Exception will be thrown.aggregatePartial that takes a PARTIAL
aggregation result and returns a boolean. The method should always return
true on valid inputs, or the framework will throw an Exception.| Constructor and Description |
|---|
UDAF()
Deprecated.
The default constructor.
|
UDAF(UDAFEvaluatorResolver rslv)
Deprecated.
The constructor with a particular type of resolver.
|
| Modifier and Type | Method and Description |
|---|---|
UDAFEvaluatorResolver |
getResolver()
Deprecated.
Gets the resolver.
|
void |
setResolver(UDAFEvaluatorResolver rslv)
Deprecated.
Sets the resolver.
|
public UDAF()
public UDAF(UDAFEvaluatorResolver rslv)
public void setResolver(UDAFEvaluatorResolver rslv)
rslv - The method resolver to use for method resolution.public UDAFEvaluatorResolver getResolver()
Copyright © 2017 The Apache Software Foundation. All rights reserved.