Class MarshalledRecord


  • public class MarshalledRecord
    extends WALRecord
    Special type of WAL record. Shouldn't be stored in file. Contains complete binary representation of record in buf and record position in WALRecord.pos.
    • Constructor Detail

      • MarshalledRecord

        public MarshalledRecord​(WALRecord.RecordType type,
                                WALPointer pos,
                                ByteBuffer buf)
        Parameters:
        type - Type of marshalled record.
        pos - WAL pointer to record.
        buf - Reusable buffer with record data.
    • Method Detail

      • buffer

        public ByteBuffer buffer()
        Returns:
        Buffer with marshalled record bytes. Due to performance reasons accessible only by thread that performs WAL iteration and until next record is read.