Interface DataBlockHeader
-
- All Known Implementing Classes:
DataBlockHeaderImpl,StreamingDataBlockHeaderImpl
@Unstable public interface DataBlockHeaderThe 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetBlockLength()Get the length of the block in bytes, including the header.longgetFirstEntryId()Get the message entry Id for the first message that stored in this data block.longgetHeaderLength()Get the size of this DataBlockHeader.java.io.InputStreamtoStream()Get the content of the data block header as InputStream.
-
-
-
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
java.io.InputStream toStream()
Get the content of the data block header as InputStream. Read out in current format.
-
-