类 StreamingDataBlockHeaderImpl
java.lang.Object
org.apache.bookkeeper.mledger.offload.jcloud.impl.StreamingDataBlockHeaderImpl
- 所有已实现的接口:
DataBlockHeader
The data block header in tiered storage for each data block.
-
字段概要
字段 -
构造器概要
构造器构造器说明StreamingDataBlockHeaderImpl(long headerLength, long blockLength, long ledgerId, long firstEntryId) -
方法概要
修饰符和类型方法说明static StreamingDataBlockHeaderImplfromStream(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.longstatic StreamingDataBlockHeaderImplof(int blockLength, long ledgerId, long firstEntryId) toStream()Get the content of the data block header as InputStream.toString()
-
字段详细资料
-
HEADER_MAX_SIZE
public static final int HEADER_MAX_SIZE- 另请参阅:
-
-
构造器详细资料
-
StreamingDataBlockHeaderImpl
public StreamingDataBlockHeaderImpl(long headerLength, long blockLength, long ledgerId, long firstEntryId)
-
-
方法详细资料
-
getLedgerId
public long getLedgerId() -
of
-
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
-
fromStream
- 抛出:
IOException
-
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
-