类 OffloadIndexBlockImpl
java.lang.Object
org.apache.bookkeeper.mledger.offload.jcloud.impl.OffloadIndexBlockImpl
- 所有已实现的接口:
Closeable,AutoCloseable,OffloadIndexBlock,OffloadIndexBlockV2
-
嵌套类概要
从接口继承的嵌套类/接口 org.apache.bookkeeper.mledger.offload.jcloud.OffloadIndexBlock
OffloadIndexBlock.IndexInputStream -
方法概要
修饰符和类型方法说明voidclose()static OffloadIndexBlockImplget(int magic, DataInputStream stream) static OffloadIndexBlockImplget(org.apache.bookkeeper.client.api.LedgerMetadata metadata, long dataObjectLength, long dataHeaderLength, List<OffloadIndexEntryImpl> entries) longGet the length of the header in the blocks in the data object.longGet the total size of the data object.intGet the entry count that contained in this index Block.getIndexEntryForEntry(long messageEntryId) Get the related OffloadIndexEntry that contains the given messageEntryId.static intorg.apache.bookkeeper.client.api.LedgerMetadataGet LedgerMetadata.voidrecycle()toStream()Get the content of the index block as InputStream.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.bookkeeper.mledger.offload.jcloud.OffloadIndexBlock
getIndexEntryForEntry, getLedgerMetadata, getStartEntryId
-
方法详细资料
-
get
public static OffloadIndexBlockImpl get(org.apache.bookkeeper.client.api.LedgerMetadata metadata, long dataObjectLength, long dataHeaderLength, List<OffloadIndexEntryImpl> entries) -
get
- 抛出:
IOException
-
recycle
public void recycle() -
getIndexEntryForEntry
从接口复制的说明:OffloadIndexBlockGet the related OffloadIndexEntry that contains the given messageEntryId.- 指定者:
getIndexEntryForEntry在接口中OffloadIndexBlock- 参数:
messageEntryId- the entry id of message- 返回:
- the offload index entry
- 抛出:
IOException
-
getEntryCount
public int getEntryCount()从接口复制的说明:OffloadIndexBlockGet the entry count that contained in this index Block.- 指定者:
getEntryCount在接口中OffloadIndexBlock- 指定者:
getEntryCount在接口中OffloadIndexBlockV2
-
getLedgerMetadata
public org.apache.bookkeeper.client.api.LedgerMetadata getLedgerMetadata()从接口复制的说明:OffloadIndexBlockGet LedgerMetadata.- 指定者:
getLedgerMetadata在接口中OffloadIndexBlock
-
getDataObjectLength
public long getDataObjectLength()从接口复制的说明:OffloadIndexBlockGet the total size of the data object.- 指定者:
getDataObjectLength在接口中OffloadIndexBlock- 指定者:
getDataObjectLength在接口中OffloadIndexBlockV2
-
getDataBlockHeaderLength
public long getDataBlockHeaderLength()从接口复制的说明:OffloadIndexBlockGet the length of the header in the blocks in the data object.- 指定者:
getDataBlockHeaderLength在接口中OffloadIndexBlock- 指定者:
getDataBlockHeaderLength在接口中OffloadIndexBlockV2
-
toStream
Get the content of the index block as InputStream. Read out in format: | index_magic_header | index_block_len | data_object_len | data_header_len | | index_entry_count | segment_metadata_len | segment metadata | index entries... |- 指定者:
toStream在接口中OffloadIndexBlock- 指定者:
toStream在接口中OffloadIndexBlockV2- 抛出:
IOException
-
getIndexMagicWord
public static int getIndexMagicWord() -
close
public void close()- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable
-