Class AbstractMinMaxBy
- java.lang.Object
-
- io.prestosql.metadata.SqlAggregationFunction
-
- io.prestosql.operator.aggregation.minmaxby.AbstractMinMaxBy
-
- All Implemented Interfaces:
SqlFunction
- Direct Known Subclasses:
MaxByAggregationFunction
,MinByAggregationFunction
public abstract class AbstractMinMaxBy extends SqlAggregationFunction
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMinMaxBy(boolean min, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionDependencyDeclaration
getFunctionDependencies()
List<TypeSignature>
getIntermediateTypes(FunctionBinding functionBinding)
static boolean
max(long comparisonResult)
static boolean
min(long comparisonResult)
InternalAggregationFunction
specialize(FunctionBinding functionBinding, FunctionDependencies functionDependencies)
-
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
-
-
-
-
Constructor Detail
-
AbstractMinMaxBy
protected AbstractMinMaxBy(boolean min, String description)
-
-
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
-
min
public static boolean min(long comparisonResult)
-
max
public static boolean max(long comparisonResult)
-
-