Package io.trino.operator.aggregation
Class AbstractMinMaxNAggregationFunction
- java.lang.Object
-
- io.trino.metadata.SqlAggregationFunction
-
- io.trino.operator.aggregation.AbstractMinMaxNAggregationFunction
-
- All Implemented Interfaces:
SqlFunction
- Direct Known Subclasses:
MaxNAggregationFunction,MinNAggregationFunction
public abstract class AbstractMinMaxNAggregationFunction extends SqlAggregationFunction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMinMaxNAggregationFunction(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 voidcombine(MinMaxNState state, MinMaxNState otherState)protected InternalAggregationFunctiongenerateAggregation(Type type)List<TypeSignature>getIntermediateTypes(FunctionBinding functionBinding)static voidinput(BlockTypeOperators.BlockPositionComparison comparison, Type type, MinMaxNState state, Block block, long n, int blockIndex)static voidoutput(ArrayType outputType, MinMaxNState state, BlockBuilder out)InternalAggregationFunctionspecialize(FunctionBinding functionBinding)-
Methods inherited from class io.trino.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.trino.metadata.SqlFunction
getFunctionDependencies, getFunctionDependencies
-
-
-
-
Constructor Detail
-
AbstractMinMaxNAggregationFunction
protected AbstractMinMaxNAggregationFunction(String name, Function<Type,BlockTypeOperators.BlockPositionComparison> typeToComparison, String description)
-
-
Method Detail
-
getIntermediateTypes
public List<TypeSignature> getIntermediateTypes(FunctionBinding functionBinding)
- Overrides:
getIntermediateTypesin classSqlAggregationFunction
-
specialize
public InternalAggregationFunction specialize(FunctionBinding functionBinding)
- Overrides:
specializein classSqlAggregationFunction
-
generateAggregation
protected InternalAggregationFunction generateAggregation(Type type)
-
input
public static void input(BlockTypeOperators.BlockPositionComparison comparison, Type type, MinMaxNState state, Block block, long n, int blockIndex)
-
combine
public static void combine(MinMaxNState state, MinMaxNState otherState)
-
output
public static void output(ArrayType outputType, MinMaxNState state, BlockBuilder out)
-
-