Package org.apache.iotdb.db.wal.utils
Enum WALFileStatus
- java.lang.Object
-
- java.lang.Enum<WALFileStatus>
-
- org.apache.iotdb.db.wal.utils.WALFileStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WALFileStatus>
public enum WALFileStatus extends java.lang.Enum<WALFileStatus>
This enumeration class annotates the status of wal file. This first bit is used to denote whether this contains search index.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS_NONE_SEARCH_INDEXThis file doesn't contain content needs searchingCONTAINS_SEARCH_INDEXThis file contains content needs searching
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()static WALFileStatusvalueOf(int code)Returns the enum constant of this type with the specified name.static WALFileStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WALFileStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTAINS_NONE_SEARCH_INDEX
public static final WALFileStatus CONTAINS_NONE_SEARCH_INDEX
This file doesn't contain content needs searching
-
CONTAINS_SEARCH_INDEX
public static final WALFileStatus CONTAINS_SEARCH_INDEX
This file contains content needs searching
-
-
Method Detail
-
values
public static WALFileStatus[] 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 (WALFileStatus c : WALFileStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WALFileStatus 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
-
getCode
public int getCode()
-
valueOf
public static WALFileStatus valueOf(int code)
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:
code- 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
-
-