public class GenericUDAFSumEmptyIsZero extends GenericUDAFSum
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericUDAFSumEmptyIsZero.SumDoubleZeroIfEmpty |
static class |
GenericUDAFSumEmptyIsZero.SumHiveDecimalZeroIfEmpty |
static class |
GenericUDAFSumEmptyIsZero.SumLongZeroIfEmpty |
GenericUDAFSum.GenericUDAFSumDouble, GenericUDAFSum.GenericUDAFSumEvaluator<ResultType extends org.apache.hadoop.io.Writable>, GenericUDAFSum.GenericUDAFSumHiveDecimal, GenericUDAFSum.GenericUDAFSumLong| Constructor and Description |
|---|
GenericUDAFSumEmptyIsZero() |
| Modifier and Type | Method and Description |
|---|---|
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] parameters)
Get the evaluator for the parameter types.
|
getEvaluator, getReturnTypepublic 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 GenericUDAFSumparameters - The types of the parameters. We need the type information to know
which evaluator class to use.SemanticExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.