Package org.apache.iotdb.db.wal.buffer
Class WALInfoEntry
- java.lang.Object
-
- org.apache.iotdb.db.wal.buffer.WALEntry
-
- org.apache.iotdb.db.wal.buffer.WALInfoEntry
-
- All Implemented Interfaces:
SerializedSize
public class WALInfoEntry extends WALEntry
This entry class stores info for persistence
-
-
Field Summary
Fields Modifier and Type Field Description static intFIXED_SERIALIZED_SIZEwal entry type 1 byte, memTable id 8 bytes-
Fields inherited from class org.apache.iotdb.db.wal.buffer.WALEntry
memTableId, type, value, walFlushListener
-
-
Constructor Summary
Constructors Constructor Description WALInfoEntry(long memTableId, InsertTabletNode value, int tabletStart, int tabletEnd)WALInfoEntry(long memTableId, InsertTabletPlan value, int tabletStart, int tabletEnd)WALInfoEntry(long memTableId, WALEntryValue value)WALInfoEntry(long memTableId, WALEntryValue value, boolean wait)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSignal()voidserialize(IWALByteBufferView buffer)intserializedSize()Calculate size after serialization.-
Methods inherited from class org.apache.iotdb.db.wal.buffer.WALEntry
deserialize, deserializeForConsensus, equals, getMemTableId, getType, getValue, getWalFlushListener
-
-
-
-
Field Detail
-
FIXED_SERIALIZED_SIZE
public static final int FIXED_SERIALIZED_SIZE
wal entry type 1 byte, memTable id 8 bytes- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WALInfoEntry
public WALInfoEntry(long memTableId, WALEntryValue value, boolean wait)
-
WALInfoEntry
public WALInfoEntry(long memTableId, WALEntryValue value)
-
WALInfoEntry
public WALInfoEntry(long memTableId, InsertTabletPlan value, int tabletStart, int tabletEnd)
-
WALInfoEntry
public WALInfoEntry(long memTableId, InsertTabletNode value, int tabletStart, int tabletEnd)
-
-
Method Detail
-
serializedSize
public int serializedSize()
Description copied from interface:SerializedSizeCalculate size after serialization.- Returns:
- bytes number
-
serialize
public void serialize(IWALByteBufferView buffer)
-
-