Package io.trino.util
Class MinMaxCompare
- java.lang.Object
-
- io.trino.util.MinMaxCompare
-
public final class MinMaxCompare extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static MethodHandleMAX_DOUBLE_FUNCTIONstatic MethodHandleMAX_REAL_FUNCTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlockTypeOperators.BlockPositionComparisongetMaxCompare(BlockTypeOperators operators, Type type)static MethodHandlegetMinMaxCompare(FunctionDependencies dependencies, Type type, InvocationConvention convention, boolean min)static booleanmax(long comparisonResult)static booleanmaxDouble(double left, double right)static booleanmaxReal(long intLeft, long intRight)static booleanmin(long comparisonResult)
-
-
-
Field Detail
-
MAX_REAL_FUNCTION
public static final MethodHandle MAX_REAL_FUNCTION
-
MAX_DOUBLE_FUNCTION
public static final MethodHandle MAX_DOUBLE_FUNCTION
-
-
Method Detail
-
getMinMaxCompare
public static MethodHandle getMinMaxCompare(FunctionDependencies dependencies, Type type, InvocationConvention convention, boolean min)
-
getMaxCompare
public static BlockTypeOperators.BlockPositionComparison getMaxCompare(BlockTypeOperators operators, Type type)
-
min
public static boolean min(long comparisonResult)
-
max
public static boolean max(long comparisonResult)
-
maxReal
public static boolean maxReal(long intLeft, long intRight)
-
maxDouble
public static boolean maxDouble(double left, double right)
-
-