Package dev.vortex.api
Enum Class Expression.FloatOrder
- All Implemented Interfaces:
Serializable,Comparable<Expression.FloatOrder>,Constable
- Enclosing class:
- Expression
How a comparison orders floats; codes must match the Rust JNI table. Integer, decimal, boolean, and string
comparisons give the same result in each order.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription-0.0 = +0.0, and allNaNvalues are equal and greater than all other values.-0.0 = +0.0, andNaNis unordered, as in IEEE 754: each comparison is false, except!=.The Vortex default: the total order over the bit patterns, as in Rust'sf64::total_cmp, so-0.0 < +0.0.-0.0 = +0.0, andNaNvalues are ordered by sign and payload, as in Rust'sf64::total_cmp. -
Method Summary
Modifier and TypeMethodDescriptionbytecode()static Expression.FloatOrderReturns the enum constant of this class with the specified name.static Expression.FloatOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ZEROS_EQUAL
-0.0 = +0.0, andNaNvalues are ordered by sign and payload, as in Rust'sf64::total_cmp. -
CANONICAL
-0.0 = +0.0, and allNaNvalues are equal and greater than all other values. Spark SQL uses this order. -
IEEE754
-0.0 = +0.0, andNaNis unordered, as in IEEE 754: each comparison is false, except!=. -
TOTAL_ORDER
The Vortex default: the total order over the bit patterns, as in Rust'sf64::total_cmp, so-0.0 < +0.0.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
public byte code()
-