Enum TimeIntervalUnit
- java.lang.Object
-
- java.lang.Enum<TimeIntervalUnit>
-
- org.apache.flink.table.expressions.TimeIntervalUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<TimeIntervalUnit>
,TableSymbol
@PublicEvolving public enum TimeIntervalUnit extends Enum<TimeIntervalUnit> implements TableSymbol
Units for working with time intervals.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTURY
DAY
DAY_TO_HOUR
DAY_TO_MINUTE
DAY_TO_SECOND
DECADE
EPOCH
HOUR
HOUR_TO_MINUTE
HOUR_TO_SECOND
MICROSECOND
MILLENNIUM
MILLISECOND
MINUTE
MINUTE_TO_SECOND
MONTH
NANOSECOND
QUARTER
SECOND
WEEK
YEAR
YEAR_TO_MONTH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeIntervalUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeIntervalUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLENNIUM
public static final TimeIntervalUnit MILLENNIUM
-
CENTURY
public static final TimeIntervalUnit CENTURY
-
DECADE
public static final TimeIntervalUnit DECADE
-
YEAR
public static final TimeIntervalUnit YEAR
-
YEAR_TO_MONTH
public static final TimeIntervalUnit YEAR_TO_MONTH
-
QUARTER
public static final TimeIntervalUnit QUARTER
-
MONTH
public static final TimeIntervalUnit MONTH
-
WEEK
public static final TimeIntervalUnit WEEK
-
DAY
public static final TimeIntervalUnit DAY
-
DAY_TO_HOUR
public static final TimeIntervalUnit DAY_TO_HOUR
-
DAY_TO_MINUTE
public static final TimeIntervalUnit DAY_TO_MINUTE
-
DAY_TO_SECOND
public static final TimeIntervalUnit DAY_TO_SECOND
-
HOUR
public static final TimeIntervalUnit HOUR
-
HOUR_TO_MINUTE
public static final TimeIntervalUnit HOUR_TO_MINUTE
-
HOUR_TO_SECOND
public static final TimeIntervalUnit HOUR_TO_SECOND
-
MINUTE
public static final TimeIntervalUnit MINUTE
-
MINUTE_TO_SECOND
public static final TimeIntervalUnit MINUTE_TO_SECOND
-
SECOND
public static final TimeIntervalUnit SECOND
-
MILLISECOND
public static final TimeIntervalUnit MILLISECOND
-
MICROSECOND
public static final TimeIntervalUnit MICROSECOND
-
NANOSECOND
public static final TimeIntervalUnit NANOSECOND
-
EPOCH
public static final TimeIntervalUnit EPOCH
-
-
Method Detail
-
values
public static TimeIntervalUnit[] 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 (TimeIntervalUnit c : TimeIntervalUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeIntervalUnit 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
-
-