Package io.trino.operator.aggregation
Class AbstractMinMaxAggregationFunction
java.lang.Object
io.trino.metadata.SqlAggregationFunction
io.trino.operator.aggregation.AbstractMinMaxAggregationFunction
- All Implemented Interfaces:
SqlFunction
- Direct Known Subclasses:
MaxAggregationFunction,MinAggregationFunction
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMinMaxAggregationFunction(String name, boolean min, String description) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcombine(MethodHandle methodHandle, BlockPositionState state, BlockPositionState otherState) static voidcombine(MethodHandle methodHandle, GenericBooleanState state, GenericBooleanState otherState) static voidcombine(MethodHandle methodHandle, GenericDoubleState state, GenericDoubleState otherState) static voidcombine(MethodHandle methodHandle, GenericLongState state, GenericLongState otherState) static voidinput(MethodHandle methodHandle, BlockPositionState state, Block block, int position) static voidinput(MethodHandle methodHandle, GenericBooleanState state, boolean value) static voidinput(MethodHandle methodHandle, GenericDoubleState state, double value) static voidinput(MethodHandle methodHandle, GenericLongState state, long value) 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
-
AbstractMinMaxAggregationFunction
-
-
Method Details
-
getFunctionDependencies
-
specialize
public AggregationMetadata specialize(BoundSignature boundSignature, FunctionDependencies functionDependencies) - Overrides:
specializein classSqlAggregationFunction
-
input
-
input
-
input
-
input
public static void input(MethodHandle methodHandle, BlockPositionState state, Block block, int position) -
combine
public static void combine(MethodHandle methodHandle, GenericLongState state, GenericLongState otherState) -
combine
public static void combine(MethodHandle methodHandle, GenericDoubleState state, GenericDoubleState otherState) -
combine
public static void combine(MethodHandle methodHandle, GenericBooleanState state, GenericBooleanState otherState) -
combine
public static void combine(MethodHandle methodHandle, BlockPositionState state, BlockPositionState otherState)
-