接口 DataBlockHeader
@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
-
方法概要
修饰符和类型方法说明longGet the length of the block in bytes, including the header.longGet the message entry Id for the first message that stored in this data block.longGet the size of this DataBlockHeader.toStream()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.
-