Package io.trino.sql.tree
Enum CurrentTime.Function
- java.lang.Object
-
- java.lang.Enum<CurrentTime.Function>
-
- io.trino.sql.tree.CurrentTime.Function
-
- All Implemented Interfaces:
Serializable,Comparable<CurrentTime.Function>
- Enclosing class:
- CurrentTime
public static enum CurrentTime.Function extends Enum<CurrentTime.Function>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATELOCALTIMELOCALTIMESTAMPTIMETIMESTAMP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static CurrentTime.FunctionvalueOf(String name)Returns the enum constant of this type with the specified name.static CurrentTime.Function[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TIME
public static final CurrentTime.Function TIME
-
DATE
public static final CurrentTime.Function DATE
-
TIMESTAMP
public static final CurrentTime.Function TIMESTAMP
-
LOCALTIME
public static final CurrentTime.Function LOCALTIME
-
LOCALTIMESTAMP
public static final CurrentTime.Function LOCALTIMESTAMP
-
-
Method Detail
-
values
public static CurrentTime.Function[] 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 (CurrentTime.Function c : CurrentTime.Function.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CurrentTime.Function 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
-
getName
public String getName()
-
-