public class GenericUDAFSum extends AbstractGenericUDAFResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericUDAFSum.GenericUDAFSumDouble
GenericUDAFSumDouble.
|
static class |
GenericUDAFSum.GenericUDAFSumEvaluator<ResultType extends org.apache.hadoop.io.Writable>
The base type for sum operator evaluator
|
static class |
GenericUDAFSum.GenericUDAFSumHiveDecimal
GenericUDAFSumHiveDecimal.
|
static class |
GenericUDAFSum.GenericUDAFSumLong
GenericUDAFSumLong.
|
| Constructor and Description |
|---|
GenericUDAFSum() |
| Modifier and Type | Method and Description |
|---|---|
GenericUDAFEvaluator |
getEvaluator(GenericUDAFParameterInfo info)
Get the evaluator for the parameter types.
|
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] parameters)
Get the evaluator for the parameter types.
|
static PrimitiveObjectInspector.PrimitiveCategory |
getReturnType(TypeInfo type) |
public GenericUDAFEvaluator getEvaluator(TypeInfo[] parameters) 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 GenericUDAFResolvergetEvaluator in class AbstractGenericUDAFResolverparameters - The types of the parameters. We need the type information to know
which evaluator class to use.SemanticExceptionpublic 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 GenericUDAFResolver2getEvaluator in class AbstractGenericUDAFResolverinfo - The parameter information that is applicable to the UDAF being
invoked.SemanticExceptionpublic static PrimitiveObjectInspector.PrimitiveCategory getReturnType(TypeInfo type)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.