@InterfaceStability.Unstable public interface OffloadIndexBlockV2 extends Closeable
| Modifier and Type | Method and Description |
|---|---|
long |
getDataBlockHeaderLength()
Get the length of the header in the blocks in the data object.
|
long |
getDataObjectLength()
Get the total size of the data object.
|
int |
getEntryCount()
Get the entry count that contained in this index Block.
|
OffloadIndexEntry |
getIndexEntryForEntry(long ledgerId,
long messageEntryId)
Get the related OffloadIndexEntry that contains the given messageEntryId.
|
org.apache.bookkeeper.client.api.LedgerMetadata |
getLedgerMetadata(long ledgerId)
Get LedgerMetadata.
|
long |
getStartEntryId(long ledgerId) |
OffloadIndexBlock.IndexInputStream |
toStream()
Get the content of the index block as InputStream.
|
OffloadIndexBlock.IndexInputStream toStream() throws IOException
IOExceptionOffloadIndexEntry getIndexEntryForEntry(long ledgerId, long messageEntryId) throws IOException
messageEntryId - the entry id of messageIOExceptionlong getStartEntryId(long ledgerId)
int getEntryCount()
org.apache.bookkeeper.client.api.LedgerMetadata getLedgerMetadata(long ledgerId)
long getDataObjectLength()
long getDataBlockHeaderLength()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.