|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.udf.generic.AbstractGenericUDAFResolver
public abstract class AbstractGenericUDAFResolver
An abstract class to help facilitate existing implementations of
GenericUDAFResolver to migrate towards the newly introduced
interface GenericUDAFResolver2
. This class provides a default
implementation of this new API and in turn calls
the existing API GenericUDAFResolver.getEvaluator(TypeInfo[])
by
ignoring the extra parameter information available via the
GenericUDAFParameterInfo interface.
Constructor Summary | |
---|---|
AbstractGenericUDAFResolver()
|
Method Summary | |
---|---|
GenericUDAFEvaluator |
getEvaluator(GenericUDAFParameterInfo info)
Get the evaluator for the parameter types. |
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] info)
Get the evaluator for the parameter types. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractGenericUDAFResolver()
Method Detail |
---|
public GenericUDAFEvaluator getEvaluator(GenericUDAFParameterInfo info) throws SemanticException
GenericUDAFResolver2
If the class of the object does not implement Serializable, then we will create a new instance of the class at execution time.
getEvaluator
in interface GenericUDAFResolver2
info
- The parameter information that is applicable to the UDAF being
invoked.
SemanticException
public GenericUDAFEvaluator getEvaluator(TypeInfo[] info) throws SemanticException
GenericUDAFResolver
If the class of the object does not implement Serializable, then we will create a new instance of the class at execution time.
getEvaluator
in interface GenericUDAFResolver
info
- The types of the parameters. We need the type information to know
which evaluator class to use.
SemanticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |