Class OffloadIndexEntryImpl
- java.lang.Object
-
- org.apache.bookkeeper.mledger.offload.jcloud.impl.OffloadIndexEntryImpl
-
- All Implemented Interfaces:
OffloadIndexEntry
public class OffloadIndexEntryImpl extends java.lang.Object implements OffloadIndexEntry
The Index Entry in OffloadIndexBlock.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDataOffset()Get the offset of the block's data within the object.longgetEntryId()Get the entryId that this entry contains.longgetOffset()Get the offset of this block within the object.intgetPartId()Get the block part id of tiered storage.static OffloadIndexEntryImplof(long entryId, int partId, long offset, long blockHeaderSize)java.lang.StringtoString()
-
-
-
Method Detail
-
of
public static OffloadIndexEntryImpl of(long entryId, int partId, long offset, long blockHeaderSize)
-
getEntryId
public long getEntryId()
Description copied from interface:OffloadIndexEntryGet the entryId that this entry contains.- Specified by:
getEntryIdin interfaceOffloadIndexEntry
-
getPartId
public int getPartId()
Description copied from interface:OffloadIndexEntryGet the block part id of tiered storage.- Specified by:
getPartIdin interfaceOffloadIndexEntry
-
getOffset
public long getOffset()
Description copied from interface:OffloadIndexEntryGet the offset of this block within the object.- Specified by:
getOffsetin interfaceOffloadIndexEntry
-
getDataOffset
public long getDataOffset()
Description copied from interface:OffloadIndexEntryGet the offset of the block's data within the object.- Specified by:
getDataOffsetin interfaceOffloadIndexEntry
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-