Class WALEntry

  • All Implemented Interfaces:
    SerializedSize
    Direct Known Subclasses:
    WALInfoEntry, WALSignalEntry

    public abstract class WALEntry
    extends java.lang.Object
    implements SerializedSize
    WALEntry is the basic element of .wal file, including type, memTable id, and specific value(physical plan or memTable snapshot).
    • Field Detail

      • memTableId

        protected final long memTableId
        memTable id
      • value

        protected final WALEntryValue value
        value(physical plan or memTable snapshot)
      • walFlushListener

        protected final WALFlushListener walFlushListener
        listen whether this WALEntry has been written to the filesystem, null iff this WALEntry is deserialized from .wal file
    • Constructor Detail

      • WALEntry

        public WALEntry​(long memTableId,
                        WALEntryValue value,
                        boolean wait)
    • Method Detail

      • deserialize

        public static WALEntry deserialize​(java.io.DataInputStream stream)
                                    throws org.apache.iotdb.commons.exception.IllegalPathException,
                                           java.io.IOException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
        java.io.IOException
      • deserializeForConsensus

        public static PlanNode deserializeForConsensus​(java.nio.ByteBuffer buffer)
        This deserialization method is only for multi-leader consensus and just deserializes InsertRowNode and InsertTabletNode
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getMemTableId

        public long getMemTableId()
      • isSignal

        public abstract boolean isSignal()