public abstract class AbstractGenericUDAFResolver extends Object implements GenericUDAFResolver2
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 and Description |
|---|
AbstractGenericUDAFResolver() |
| Modifier and Type | Method and Description |
|---|---|
GenericUDAFEvaluator |
getEvaluator(GenericUDAFParameterInfo info)
Get the evaluator for the parameter types.
|
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] info)
Get the evaluator for the parameter types.
|
public GenericUDAFEvaluator getEvaluator(GenericUDAFParameterInfo info) throws SemanticException
GenericUDAFResolver2If 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 GenericUDAFResolver2info - The parameter information that is applicable to the UDAF being
invoked.SemanticExceptionpublic GenericUDAFEvaluator getEvaluator(TypeInfo[] info) throws SemanticException
GenericUDAFResolverIf 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 GenericUDAFResolverinfo - The types of the parameters. We need the type information to know
which evaluator class to use.SemanticExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.