|
||||||||||
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.GenericUDAFCount
public class GenericUDAFCount
This class implements the COUNT aggregation function as in SQL.
Nested Class Summary | |
---|---|
static class |
GenericUDAFCount.GenericUDAFCountEvaluator
GenericUDAFCountEvaluator. |
Constructor Summary | |
---|---|
GenericUDAFCount()
|
Method Summary | |
---|---|
GenericUDAFEvaluator |
getEvaluator(GenericUDAFParameterInfo paramInfo)
Get the evaluator for the parameter types. |
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] parameters)
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 GenericUDAFCount()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |