类 DataBlockHeaderImpl
java.lang.Object
org.apache.bookkeeper.mledger.offload.jcloud.impl.DataBlockHeaderImpl
- 所有已实现的接口:
DataBlockHeader
The data block header in tiered storage for each data block.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static DataBlockHeaderfromStream(InputStream stream) longGet the length of the block in bytes, including the header.static intstatic intlongGet the message entry Id for the first message that stored in this data block.longGet the size of this DataBlockHeader.static DataBlockHeaderImplof(int blockLength, long firstEntryId) toStream()Get the content of the data block header as InputStream.toString()
-
构造器详细资料
-
DataBlockHeaderImpl
public DataBlockHeaderImpl(long headerLength, long blockLength, long firstEntryId)
-
-
方法详细资料
-
of
-
fromStream
- 抛出:
IOException
-
getBlockMagicWord
public static int getBlockMagicWord() -
getDataStartOffset
public static int getDataStartOffset() -
getBlockLength
public long getBlockLength()从接口复制的说明:DataBlockHeaderGet the length of the block in bytes, including the header.- 指定者:
getBlockLength在接口中DataBlockHeader
-
getHeaderLength
public long getHeaderLength()从接口复制的说明:DataBlockHeaderGet the size of this DataBlockHeader.- 指定者:
getHeaderLength在接口中DataBlockHeader
-
getFirstEntryId
public long getFirstEntryId()从接口复制的说明:DataBlockHeaderGet the message entry Id for the first message that stored in this data block.- 指定者:
getFirstEntryId在接口中DataBlockHeader
-
toStream
Get the content of the data block header as InputStream. Read out in format: [ magic_word -- int ][ block_len -- int ][ first_entry_id -- long] [padding zeros]- 指定者:
toStream在接口中DataBlockHeader
-
toString
-