Enum DayTimeIntervalType.DayTimeResolution
- java.lang.Object
-
- java.lang.Enum<DayTimeIntervalType.DayTimeResolution>
-
- org.apache.flink.table.types.logical.DayTimeIntervalType.DayTimeResolution
-
- All Implemented Interfaces:
Serializable,Comparable<DayTimeIntervalType.DayTimeResolution>
- Enclosing class:
- DayTimeIntervalType
@PublicEvolving public static enum DayTimeIntervalType.DayTimeResolution extends Enum<DayTimeIntervalType.DayTimeResolution>
Supported resolutions of this type.Note: The order of this enum reflects the granularity from coarse to fine.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAYDAY_TO_HOURDAY_TO_MINUTEDAY_TO_SECONDHOURHOUR_TO_MINUTEHOUR_TO_SECONDMINUTEMINUTE_TO_SECONDSECOND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DayTimeIntervalType.DayTimeResolutionvalueOf(String name)Returns the enum constant of this type with the specified name.static DayTimeIntervalType.DayTimeResolution[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY
public static final DayTimeIntervalType.DayTimeResolution DAY
-
DAY_TO_HOUR
public static final DayTimeIntervalType.DayTimeResolution DAY_TO_HOUR
-
DAY_TO_MINUTE
public static final DayTimeIntervalType.DayTimeResolution DAY_TO_MINUTE
-
DAY_TO_SECOND
public static final DayTimeIntervalType.DayTimeResolution DAY_TO_SECOND
-
HOUR
public static final DayTimeIntervalType.DayTimeResolution HOUR
-
HOUR_TO_MINUTE
public static final DayTimeIntervalType.DayTimeResolution HOUR_TO_MINUTE
-
HOUR_TO_SECOND
public static final DayTimeIntervalType.DayTimeResolution HOUR_TO_SECOND
-
MINUTE
public static final DayTimeIntervalType.DayTimeResolution MINUTE
-
MINUTE_TO_SECOND
public static final DayTimeIntervalType.DayTimeResolution MINUTE_TO_SECOND
-
SECOND
public static final DayTimeIntervalType.DayTimeResolution SECOND
-
-
Method Detail
-
values
public static DayTimeIntervalType.DayTimeResolution[] 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 (DayTimeIntervalType.DayTimeResolution c : DayTimeIntervalType.DayTimeResolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DayTimeIntervalType.DayTimeResolution 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
-
-