Package org.apache.druid.query.scan
Enum ScanQuery.Order
- java.lang.Object
-
- java.lang.Enum<ScanQuery.Order>
-
- org.apache.druid.query.scan.ScanQuery.Order
-
- All Implemented Interfaces:
Serializable
,Comparable<ScanQuery.Order>
- Enclosing class:
- ScanQuery
public static enum ScanQuery.Order extends Enum<ScanQuery.Order>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCENDING
DESCENDING
NONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScanQuery.Order
fromString(String name)
String
toString()
static ScanQuery.Order
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScanQuery.Order[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASCENDING
public static final ScanQuery.Order ASCENDING
-
DESCENDING
public static final ScanQuery.Order DESCENDING
-
NONE
public static final ScanQuery.Order NONE
-
-
Method Detail
-
values
public static ScanQuery.Order[] 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 (ScanQuery.Order c : ScanQuery.Order.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScanQuery.Order 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<ScanQuery.Order>
-
fromString
public static ScanQuery.Order fromString(String name)
-
-