Class AbstractMinMaxByNAggregationFunction
- java.lang.Object
-
- io.trino.metadata.SqlAggregationFunction
-
- io.trino.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 protectedAbstractMinMaxByNAggregationFunction(String name, boolean min, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcombine(MinMaxByNState state, MinMaxByNState otherState)protected AggregationMetadatagenerateAggregation(MethodHandle keyComparisonMethod, Type valueType, Type keyType)FunctionDependencyDeclarationgetFunctionDependencies(BoundSignature boundSignature)static voidinput(MethodHandle keyComparisonMethod, Type valueType, Type keyType, MinMaxByNState state, Block value, Block key, int blockIndex, long n)static voidoutput(ArrayType outputType, MinMaxByNState state, BlockBuilder out)AggregationMetadataspecialize(BoundSignature boundSignature, FunctionDependencies functionDependencies)-
Methods inherited from class io.trino.metadata.SqlAggregationFunction
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
-
-
-
-
Method Detail
-
getFunctionDependencies
public FunctionDependencyDeclaration getFunctionDependencies(BoundSignature boundSignature)
-
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, 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 AggregationMetadata generateAggregation(MethodHandle keyComparisonMethod, Type valueType, Type keyType)
-
-