Interface DataBlockHeader

  • All Known Implementing Classes:
    DataBlockHeaderImpl, StreamingDataBlockHeaderImpl

    @Unstable
    public interface DataBlockHeader
    The data block header in tiered storage for each data block.

    Currently, It is in format: [ magic_word -- int ][ block_len -- int ][ first_entry_id -- long][padding] with the size: 4 + 4 + 8 + padding = 128 Bytes

    • Method Detail

      • getBlockLength

        long getBlockLength()
        Get the length of the block in bytes, including the header.
      • getFirstEntryId

        long getFirstEntryId()
        Get the message entry Id for the first message that stored in this data block.
      • getHeaderLength

        long getHeaderLength()
        Get the size of this DataBlockHeader.
      • toStream

        InputStream toStream()
        Get the content of the data block header as InputStream. Read out in current format.