public class GenericUDAFCount extends Object implements GenericUDAFResolver2
Modifier and Type | Class and Description |
---|---|
static class |
GenericUDAFCount.GenericUDAFCountEvaluator
GenericUDAFCountEvaluator.
|
Constructor and Description |
---|
GenericUDAFCount() |
Modifier and Type | Method and Description |
---|---|
GenericUDAFEvaluator |
getEvaluator(GenericUDAFParameterInfo paramInfo)
Get the evaluator for the parameter types.
|
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] parameters)
Get the evaluator for the parameter types.
|
public GenericUDAFEvaluator getEvaluator(TypeInfo[] parameters) 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
parameters
- The types of the parameters. We need the type information to know
which evaluator class to use.SemanticException
public GenericUDAFEvaluator getEvaluator(GenericUDAFParameterInfo paramInfo) 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
paramInfo
- The parameter information that is applicable to the UDAF being
invoked.SemanticException
Copyright © 2016 The Apache Software Foundation. All rights reserved.