Class FPOrdering
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.FPOrdering
-
public class FPOrdering extends Object
-
-
Method Detail
-
ordinalOf
public static long ordinalOf(double value)
Maps doubles to longs with the same total (unsigned) order. POSITIVE_INFINITY is considered greater than or equal to all values. NEGATIVE_INFINITY and NaN are considered less than or equal to all values.- Parameters:
value- a double value- Returns:
- an ordinal
-
ordinalOf
public static long ordinalOf(float value)
Maps floats to longs with the same total (unsigned) order. POSITIVE_INFINITY is considered greater than or equal to all values. NEGATIVE_INFINITY and NaN are considered less than or equal to all values.- Parameters:
value- a float value- Returns:
- an ordinal
-
-