Enum TimeIndexLevel
- java.lang.Object
-
- java.lang.Enum<TimeIndexLevel>
-
- org.apache.iotdb.db.engine.storagegroup.timeindex.TimeIndexLevel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TimeIndexLevel>
public enum TimeIndexLevel extends java.lang.Enum<TimeIndexLevel>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEVICE_TIME_INDEXdevice to time index (large memory foot print)FILE_TIME_INDEXfile to time index (small memory foot print)V012_FILE_TIME_INDEXv0.12 file to time index (small memory foot print)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ITimeIndexgetTimeIndex()static TimeIndexLevelvalueOf(int ordinal)Returns the enum constant of this type with the specified name.static TimeIndexLevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TimeIndexLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V012_FILE_TIME_INDEX
public static final TimeIndexLevel V012_FILE_TIME_INDEX
v0.12 file to time index (small memory foot print)
-
DEVICE_TIME_INDEX
public static final TimeIndexLevel DEVICE_TIME_INDEX
device to time index (large memory foot print)
-
FILE_TIME_INDEX
public static final TimeIndexLevel FILE_TIME_INDEX
file to time index (small memory foot print)
-
-
Method Detail
-
values
public static TimeIndexLevel[] 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 (TimeIndexLevel c : TimeIndexLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeIndexLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTimeIndex
public ITimeIndex getTimeIndex()
-
valueOf
public static TimeIndexLevel valueOf(int ordinal)
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:
ordinal- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-