Package org.apache.iotdb.db.wal.buffer
Enum WALEntryType
- java.lang.Object
-
- java.lang.Enum<WALEntryType>
-
- org.apache.iotdb.db.wal.buffer.WALEntryType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WALEntryType>
public enum WALEntryType extends java.lang.Enum<WALEntryType>
Type ofWALEntry, including info type and signal type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSE_SIGNALsignal wal buffer has been closedDELETE_DATA_NODEDELETE_PLANINSERT_ROW_NODEINSERT_ROW_PLANINSERT_TABLET_NODEINSERT_TABLET_PLANMEMORY_TABLE_SNAPSHOTsnapshot ofIMemTableROLL_WAL_LOG_WRITER_SIGNALsignal wal buffer to roll wal log writerWAL_FILE_INFO_END_MARKERmark the wal file info part ends
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetCode()booleanneedSearch()Returns true when this type should be searchedstatic WALEntryTypevalueOf(byte code)Returns the enum constant of this type with the specified name.static WALEntryTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WALEntryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERT_ROW_PLAN
public static final WALEntryType INSERT_ROW_PLAN
-
INSERT_TABLET_PLAN
public static final WALEntryType INSERT_TABLET_PLAN
-
DELETE_PLAN
public static final WALEntryType DELETE_PLAN
-
MEMORY_TABLE_SNAPSHOT
public static final WALEntryType MEMORY_TABLE_SNAPSHOT
snapshot ofIMemTable
-
INSERT_ROW_NODE
public static final WALEntryType INSERT_ROW_NODE
-
INSERT_TABLET_NODE
public static final WALEntryType INSERT_TABLET_NODE
-
DELETE_DATA_NODE
public static final WALEntryType DELETE_DATA_NODE
-
CLOSE_SIGNAL
public static final WALEntryType CLOSE_SIGNAL
signal wal buffer has been closed
-
ROLL_WAL_LOG_WRITER_SIGNAL
public static final WALEntryType ROLL_WAL_LOG_WRITER_SIGNAL
signal wal buffer to roll wal log writer
-
WAL_FILE_INFO_END_MARKER
public static final WALEntryType WAL_FILE_INFO_END_MARKER
mark the wal file info part ends
-
-
Method Detail
-
values
public static WALEntryType[] 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 (WALEntryType c : WALEntryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WALEntryType 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 byte getCode()
-
needSearch
public boolean needSearch()
Returns true when this type should be searched
-
valueOf
public static WALEntryType valueOf(byte 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
-
-