Enum TableSemantics.SortDirection

java.lang.Object
java.lang.Enum<TableSemantics.SortDirection>
org.apache.flink.table.functions.TableSemantics.SortDirection
All Implemented Interfaces:
Serializable, Comparable<TableSemantics.SortDirection>, java.lang.constant.Constable
Enclosing interface:
TableSemantics

@PublicEvolving public static enum TableSemantics.SortDirection extends Enum<TableSemantics.SortDirection>
The sort direction for ORDER BY columns in table arguments with set semantics.
  • Enum Constant Details

  • Method Details

    • values

      public static TableSemantics.SortDirection[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TableSemantics.SortDirection valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • isDescending

      public boolean isDescending()
      Returns true if this is a descending sort direction.
    • isNullsFirst

      public boolean isNullsFirst()
      Returns true if nulls should be sorted first.
    • isNullsLast

      public boolean isNullsLast()
      Returns true if nulls should be sorted last.