Package io.trino.sql.tree
Enum Extract.Field
- java.lang.Object
-
- java.lang.Enum<Extract.Field>
-
- io.trino.sql.tree.Extract.Field
-
- All Implemented Interfaces:
Serializable
,Comparable<Extract.Field>
- Enclosing class:
- Extract
public static enum Extract.Field extends Enum<Extract.Field>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY
DAY_OF_MONTH
DAY_OF_WEEK
DAY_OF_YEAR
DOW
DOY
HOUR
MINUTE
MONTH
QUARTER
SECOND
TIMEZONE_HOUR
TIMEZONE_MINUTE
WEEK
YEAR
YEAR_OF_WEEK
YOW
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Extract.Field
valueOf(String name)
Returns the enum constant of this type with the specified name.static Extract.Field[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final Extract.Field YEAR
-
QUARTER
public static final Extract.Field QUARTER
-
MONTH
public static final Extract.Field MONTH
-
WEEK
public static final Extract.Field WEEK
-
DAY
public static final Extract.Field DAY
-
DAY_OF_MONTH
public static final Extract.Field DAY_OF_MONTH
-
DAY_OF_WEEK
public static final Extract.Field DAY_OF_WEEK
-
DOW
public static final Extract.Field DOW
-
DAY_OF_YEAR
public static final Extract.Field DAY_OF_YEAR
-
DOY
public static final Extract.Field DOY
-
YEAR_OF_WEEK
public static final Extract.Field YEAR_OF_WEEK
-
YOW
public static final Extract.Field YOW
-
HOUR
public static final Extract.Field HOUR
-
MINUTE
public static final Extract.Field MINUTE
-
SECOND
public static final Extract.Field SECOND
-
TIMEZONE_MINUTE
public static final Extract.Field TIMEZONE_MINUTE
-
TIMEZONE_HOUR
public static final Extract.Field TIMEZONE_HOUR
-
-
Method Detail
-
values
public static Extract.Field[] 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 (Extract.Field c : Extract.Field.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Extract.Field 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
-
-