Enum TimestampIndexGranularity
- java.lang.Object
-
- java.lang.Enum<TimestampIndexGranularity>
-
- org.apache.pinot.spi.config.table.TimestampIndexGranularity
-
- All Implemented Interfaces:
Serializable,Comparable<TimestampIndexGranularity>,java.lang.constant.Constable
public enum TimestampIndexGranularity extends Enum<TimestampIndexGranularity>
TimestampIndexGranularity is the enum of different time granularities from MILLIS to YEAR.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static TimestampIndexGranularityvalueOf(String name)Returns the enum constant of this type with the specified name.static TimestampIndexGranularity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLISECOND
public static final TimestampIndexGranularity MILLISECOND
-
SECOND
public static final TimestampIndexGranularity SECOND
-
MINUTE
public static final TimestampIndexGranularity MINUTE
-
HOUR
public static final TimestampIndexGranularity HOUR
-
DAY
public static final TimestampIndexGranularity DAY
-
WEEK
public static final TimestampIndexGranularity WEEK
-
MONTH
public static final TimestampIndexGranularity MONTH
-
QUARTER
public static final TimestampIndexGranularity QUARTER
-
YEAR
public static final TimestampIndexGranularity YEAR
-
-
Method Detail
-
values
public static TimestampIndexGranularity[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimestampIndexGranularity 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
-
-