Package io.prestosql.operator.scalar
Class AbstractGreatestLeast
- java.lang.Object
-
- io.prestosql.metadata.SqlScalarFunction
-
- io.prestosql.operator.scalar.AbstractGreatestLeast
-
- All Implemented Interfaces:
SqlFunction
public abstract class AbstractGreatestLeast extends SqlScalarFunction
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractGreatestLeast(boolean min, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionDependencyDeclaration
getFunctionDependencies()
static boolean
max(long comparisonResult)
static boolean
min(long comparisonResult)
ScalarFunctionImplementation
specialize(FunctionBinding functionBinding, FunctionDependencies functionDependencies)
-
Methods inherited from class io.prestosql.metadata.SqlScalarFunction
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
-
AbstractGreatestLeast
protected AbstractGreatestLeast(boolean min, String description)
-
-
Method Detail
-
getFunctionDependencies
public FunctionDependencyDeclaration getFunctionDependencies()
-
specialize
public ScalarFunctionImplementation specialize(FunctionBinding functionBinding, FunctionDependencies functionDependencies)
- Overrides:
specialize
in classSqlScalarFunction
-
min
public static boolean min(long comparisonResult)
-
max
public static boolean max(long comparisonResult)
-
-