@InterfaceStability.Unstable public interface OffloadIndexBlock extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
OffloadIndexBlock.IndexInputStream
An input stream which knows the size of the stream upfront.
|
| 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 messageEntryId)
Get the related OffloadIndexEntry that contains the given messageEntryId.
|
org.apache.bookkeeper.client.api.LedgerMetadata |
getLedgerMetadata()
Get LedgerMetadata.
|
OffloadIndexBlock.IndexInputStream |
toStream()
Get the content of the index block as InputStream.
|
OffloadIndexBlock.IndexInputStream toStream() throws IOException
IOExceptionOffloadIndexEntry getIndexEntryForEntry(long messageEntryId) throws IOException
messageEntryId - the entry id of messageIOExceptionint getEntryCount()
org.apache.bookkeeper.client.api.LedgerMetadata getLedgerMetadata()
long getDataObjectLength()
long getDataBlockHeaderLength()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.