@InterfaceStability.Unstable
public interface DataBlockHeader
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
| Modifier and Type | Method and Description |
|---|---|
long |
getBlockLength()
Get the length of the block in bytes, including the header.
|
long |
getFirstEntryId()
Get the message entry Id for the first message that stored in this data block.
|
long |
getHeaderLength()
Get the size of this DataBlockHeader.
|
InputStream |
toStream()
Get the content of the data block header as InputStream.
|
long getBlockLength()
long getFirstEntryId()
long getHeaderLength()
InputStream toStream()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.