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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMinMaxNAggregationFunction(String name, boolean min, String description) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcombine(MinMaxNState state, MinMaxNState otherState) getFunctionDependencies(BoundSignature boundSignature) static voidinput(MethodHandle compare, Type type, MinMaxNState state, Block block, long n, int blockIndex) static voidoutput(ArrayType outputType, MinMaxNState state, BlockBuilder out) specialize(BoundSignature boundSignature, FunctionDependencies functionDependencies) Methods inherited from class io.trino.metadata.SqlAggregationFunction
createFunctionsByAnnotations, getAggregationMetadata, getFunctionMetadata, specializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.metadata.SqlFunction
getFunctionDependencies
-
Constructor Details
-
AbstractMinMaxNAggregationFunction
-
-
Method Details
-
getFunctionDependencies
-
specialize
public AggregationMetadata specialize(BoundSignature boundSignature, FunctionDependencies functionDependencies) - Overrides:
specializein classSqlAggregationFunction
-
input
public static void input(MethodHandle compare, Type type, MinMaxNState state, Block block, long n, int blockIndex) -
combine
-
output
-