Package org.apache.iotdb.db.wal.buffer
Class WALSignalEntry
- java.lang.Object
-
- org.apache.iotdb.db.wal.buffer.WALEntry
-
- org.apache.iotdb.db.wal.buffer.WALSignalEntry
-
- All Implemented Interfaces:
SerializedSize
public class WALSignalEntry extends WALEntry
This entry class provides a signal to help wal buffer dealing with some special cases
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.wal.buffer.WALEntry
memTableId, type, value, walFlushListener
-
-
Constructor Summary
Constructors Constructor Description WALSignalEntry(WALEntryType signalType)WALSignalEntry(WALEntryType signalType, boolean wait)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSignal()voidserialize(java.nio.ByteBuffer buffer)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
-
-
-
-
Constructor Detail
-
WALSignalEntry
public WALSignalEntry(WALEntryType signalType)
-
WALSignalEntry
public WALSignalEntry(WALEntryType signalType, boolean wait)
-
-
Method Detail
-
serializedSize
public int serializedSize()
Description copied from interface:SerializedSizeCalculate size after serialization.- Returns:
- bytes number
-
serialize
public void serialize(IWALByteBufferView buffer)
-
serialize
public void serialize(java.nio.ByteBuffer buffer)
-
-