Package io.trino.sql.tree
Enum SortItem.NullOrdering
- java.lang.Object
-
- java.lang.Enum<SortItem.NullOrdering>
-
- io.trino.sql.tree.SortItem.NullOrdering
-
- All Implemented Interfaces:
Serializable,Comparable<SortItem.NullOrdering>
- Enclosing class:
- SortItem
public static enum SortItem.NullOrdering extends Enum<SortItem.NullOrdering>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SortItem.NullOrderingvalueOf(String name)Returns the enum constant of this type with the specified name.static SortItem.NullOrdering[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIRST
public static final SortItem.NullOrdering FIRST
-
LAST
public static final SortItem.NullOrdering LAST
-
UNDEFINED
public static final SortItem.NullOrdering UNDEFINED
-
-
Method Detail
-
values
public static SortItem.NullOrdering[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SortItem.NullOrdering c : SortItem.NullOrdering.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SortItem.NullOrdering 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 nameNullPointerException- if the argument is null
-
-