@WindowFunctionDescription(supportsWindow=false, pivotResult=true, orderedAggregate=true) public class GenericUDAFPercentileCont extends AbstractGenericUDAFResolver
Modifier and Type | Class and Description |
---|---|
static class |
GenericUDAFPercentileCont.DoubleComparator
A comparator to sort the entries in order - Double.
|
static class |
GenericUDAFPercentileCont.LongComparator
A comparator to sort the entries in order - Long.
|
protected static interface |
GenericUDAFPercentileCont.PercentileCalculator<U> |
static class |
GenericUDAFPercentileCont.PercentileContDoubleArrayEvaluator
The evaluator for percentile computation based on array of doubles.
|
static class |
GenericUDAFPercentileCont.PercentileContDoubleCalculator |
static class |
GenericUDAFPercentileCont.PercentileContDoubleEvaluator
The evaluator for percentile computation based on double.
|
static class |
GenericUDAFPercentileCont.PercentileContEvaluator<T,U>
An abstract class to hold the generic udf functions for calculating percentile.
|
static class |
GenericUDAFPercentileCont.PercentileContLongArrayEvaluator
The evaluator for percentile computation based on array of longs.
|
static class |
GenericUDAFPercentileCont.PercentileContLongCalculator
continuous percentile calculators
|
static class |
GenericUDAFPercentileCont.PercentileContLongEvaluator
The evaluator for percentile computation based on long.
|
Constructor and Description |
---|
GenericUDAFPercentileCont() |
Modifier and Type | Method and Description |
---|---|
protected GenericUDAFEvaluator |
createDoubleEvaluator(TypeInfo percentile) |
protected GenericUDAFEvaluator |
createLongEvaluator(TypeInfo percentile) |
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 AbstractGenericUDAFResolver
parameters
- The types of the parameters. We need the type information to know
which evaluator class to use.SemanticException
protected GenericUDAFEvaluator createLongEvaluator(TypeInfo percentile)
protected GenericUDAFEvaluator createDoubleEvaluator(TypeInfo percentile)
Copyright © 2022 The Apache Software Foundation. All rights reserved.