public class GenericUDAFStdSample extends GenericUDAFVariance
Modifier and Type | Class and Description |
---|---|
static class |
GenericUDAFStdSample.GenericUDAFStdSampleEvaluator
Compute the sample standard deviation by extending
GenericUDAFVarianceEvaluator and overriding the terminate() method of the
evaluator.
|
GenericUDAFVariance.GenericUDAFVarianceEvaluator
Constructor and Description |
---|
GenericUDAFStdSample() |
Modifier and Type | Method and Description |
---|---|
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] parameters)
Get the evaluator for the parameter types.
|
getEvaluator
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
getEvaluator
in class GenericUDAFVariance
parameters
- The types of the parameters. We need the type information to know
which evaluator class to use.SemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.