接口 DataBlockHeader

所有已知实现类:
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

  • 方法概要

    修饰符和类型
    方法
    说明
    long
    Get the length of the block in bytes, including the header.
    long
    Get the message entry Id for the first message that stored in this data block.
    long
    Get the size of this DataBlockHeader.
    Get the content of the data block header as InputStream.
  • 方法详细资料

    • 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.