Class AbstractMinMaxByNAggregationFunction
java.lang.Object
io.trino.metadata.SqlAggregationFunction
io.trino.operator.aggregation.minmaxby.AbstractMinMaxByNAggregationFunction
- All Implemented Interfaces:
SqlFunction
- Direct Known Subclasses:
MaxByNAggregationFunction,MinByNAggregationFunction
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMinMaxByNAggregationFunction(String name, boolean min, String description) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcombine(MinMaxByNState state, MinMaxByNState otherState) getFunctionDependencies(BoundSignature boundSignature) static voidinput(MethodHandle keyComparisonMethod, Type valueType, Type keyType, MinMaxByNState state, Block value, Block key, long n, int blockIndex) static voidoutput(ArrayType outputType, MinMaxByNState 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
-
AbstractMinMaxByNAggregationFunction
-
-
Method Details
-
getFunctionDependencies
-
specialize
public AggregationMetadata specialize(BoundSignature boundSignature, FunctionDependencies functionDependencies) - Overrides:
specializein classSqlAggregationFunction
-
input
public static void input(MethodHandle keyComparisonMethod, Type valueType, Type keyType, MinMaxByNState state, Block value, Block key, long n, int blockIndex) -
combine
-
output
-