Enum Class Expression.FloatOrder

java.lang.Object
java.lang.Enum<Expression.FloatOrder>
dev.vortex.api.Expression.FloatOrder
All Implemented Interfaces:
Serializable, Comparable<Expression.FloatOrder>, Constable
Enclosing class:
Expression

public static enum Expression.FloatOrder extends Enum<Expression.FloatOrder>
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.
  • Enum Constant Details

    • ZEROS_EQUAL

      public static final Expression.FloatOrder ZEROS_EQUAL
      -0.0 = +0.0, and NaN values are ordered by sign and payload, as in Rust's f64::total_cmp.
    • CANONICAL

      public static final Expression.FloatOrder CANONICAL
      -0.0 = +0.0, and all NaN values are equal and greater than all other values. Spark SQL uses this order.
    • IEEE754

      public static final Expression.FloatOrder IEEE754
      -0.0 = +0.0, and NaN is unordered, as in IEEE 754: each comparison is false, except !=.
    • TOTAL_ORDER

      public static final Expression.FloatOrder TOTAL_ORDER
      The Vortex default: the total order over the bit patterns, as in Rust's f64::total_cmp, so -0.0 < +0.0.
  • Method Details

    • values

      public static Expression.FloatOrder[] 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

      public static Expression.FloatOrder valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • code

      public byte code()