public class GenericUDAFVarianceSample extends GenericUDAFVariance
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericUDAFVarianceSample.GenericUDAFVarianceSampleEvaluator
Compute the sample variance by extending GenericUDAFVarianceEvaluator and
overriding the terminate() method of the evaluator.
|
GenericUDAFVariance.GenericUDAFVarianceEvaluator, GenericUDAFVariance.VarianceKind| Constructor and Description |
|---|
GenericUDAFVarianceSample() |
| Modifier and Type | Method and Description |
|---|---|
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] parameters)
Get the evaluator for the parameter types.
|
calculateIntermediate, calculateMerge, calculateVarianceFamilyResult, isVarianceFamilyName, isVarianceNullgetEvaluatorpublic 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 GenericUDAFVarianceparameters - 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.