public abstract static class IsmFormat.IsmShard
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
long |
getBlockOffset()
Return the absolute position within the Ism file where the data block begins.
|
int |
getId()
Return the shard id.
|
long |
getIndexOffset()
Return the absolute position within the Ism file where the index block begins.
|
static IsmFormat.IsmShard |
of(int id,
long blockOffset)
Returns an IsmShard with the given id, block offset and no index offset.
|
static IsmFormat.IsmShard |
of(int id,
long blockOffset,
long indexOffset)
Returns an IsmShard with the given id, block offset, and index offset.
|
IsmFormat.IsmShard |
withIndexOffset(long indexOffset)
Returns a new IsmShard like this one with the specified index offset.
|
public static IsmFormat.IsmShard of(int id, long blockOffset)
public static IsmFormat.IsmShard of(int id, long blockOffset, long indexOffset)
public int getId()
public long getBlockOffset()
public long getIndexOffset()
IllegalStateException if the index offset was never specified.public IsmFormat.IsmShard withIndexOffset(long indexOffset)