Class AbstractMinMaxAggregationFunction
- java.lang.Object
-
- io.prestosql.metadata.SqlAggregationFunction
-
- io.prestosql.operator.aggregation.AbstractMinMaxAggregationFunction
-
- All Implemented Interfaces:
SqlFunction
- Direct Known Subclasses:
MaxAggregationFunction
,MinAggregationFunction
public abstract class AbstractMinMaxAggregationFunction extends SqlAggregationFunction
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMinMaxAggregationFunction(String name, boolean min, String description)
-
Method Summary
-
Methods inherited from class io.prestosql.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.prestosql.metadata.SqlFunction
getFunctionDependencies
-
-
-
-
Method Detail
-
getFunctionDependencies
public FunctionDependencyDeclaration getFunctionDependencies()
-
getIntermediateTypes
public List<TypeSignature> getIntermediateTypes(FunctionBinding functionBinding)
- Overrides:
getIntermediateTypes
in classSqlAggregationFunction
-
specialize
public InternalAggregationFunction specialize(FunctionBinding functionBinding, FunctionDependencies functionDependencies)
- Overrides:
specialize
in classSqlAggregationFunction
-
generateAggregation
protected InternalAggregationFunction generateAggregation(Type type, MethodHandle compareMethodHandle)
-
input
public static void input(MethodHandle methodHandle, NullableDoubleState state, double value)
-
input
public static void input(MethodHandle methodHandle, NullableLongState state, long value)
-
input
public static void input(MethodHandle methodHandle, NullableBooleanState state, boolean value)
-
input
public static void input(MethodHandle methodHandle, BlockPositionState state, Block block, int position)
-
combine
public static void combine(MethodHandle methodHandle, NullableLongState state, NullableLongState otherState)
-
combine
public static void combine(MethodHandle methodHandle, NullableDoubleState state, NullableDoubleState otherState)
-
combine
public static void combine(MethodHandle methodHandle, NullableBooleanState state, NullableBooleanState otherState)
-
combine
public static void combine(MethodHandle methodHandle, BlockPositionState state, BlockPositionState otherState)
-
min
public static boolean min(long comparisonResult)
-
max
public static boolean max(long comparisonResult)
-
-