Class AbstractMinMaxByNAggregationFunction
- java.lang.Object
-
- io.prestosql.metadata.SqlAggregationFunction
-
- io.prestosql.operator.aggregation.minmaxby.AbstractMinMaxByNAggregationFunction
-
- All Implemented Interfaces:
SqlFunction
- Direct Known Subclasses:
MaxByNAggregationFunction
,MinByNAggregationFunction
public abstract class AbstractMinMaxByNAggregationFunction extends SqlAggregationFunction
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMinMaxByNAggregationFunction(String name, Function<Type,BlockTypeOperators.BlockPositionComparison> typeToComparison, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
combine(MinMaxByNState state, MinMaxByNState otherState)
protected InternalAggregationFunction
generateAggregation(Type valueType, Type keyType)
List<TypeSignature>
getIntermediateTypes(FunctionBinding functionBinding)
static void
input(BlockTypeOperators.BlockPositionComparison comparison, Type valueType, Type keyType, MinMaxByNState state, Block value, Block key, int blockIndex, long n)
static void
output(ArrayType outputType, MinMaxByNState state, BlockBuilder out)
InternalAggregationFunction
specialize(FunctionBinding functionBinding)
-
Methods inherited from class io.prestosql.metadata.SqlAggregationFunction
createFunctionByAnnotations, createFunctionsByAnnotations, getAggregationMetadata, getFunctionMetadata, specialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.prestosql.metadata.SqlFunction
getFunctionDependencies, getFunctionDependencies
-
-
-
-
Constructor Detail
-
AbstractMinMaxByNAggregationFunction
protected AbstractMinMaxByNAggregationFunction(String name, Function<Type,BlockTypeOperators.BlockPositionComparison> typeToComparison, String description)
-
-
Method Detail
-
getIntermediateTypes
public List<TypeSignature> getIntermediateTypes(FunctionBinding functionBinding)
- Overrides:
getIntermediateTypes
in classSqlAggregationFunction
-
specialize
public InternalAggregationFunction specialize(FunctionBinding functionBinding)
- Overrides:
specialize
in classSqlAggregationFunction
-
input
public static void input(BlockTypeOperators.BlockPositionComparison comparison, Type valueType, Type keyType, MinMaxByNState state, Block value, Block key, int blockIndex, long n)
-
combine
public static void combine(MinMaxByNState state, MinMaxByNState otherState)
-
output
public static void output(ArrayType outputType, MinMaxByNState state, BlockBuilder out)
-
generateAggregation
protected InternalAggregationFunction generateAggregation(Type valueType, Type keyType)
-
-