Class IsmFormat.IsmShard
- java.lang.Object
-
- org.apache.beam.runners.dataflow.internal.IsmFormat.IsmShard
-
- Enclosing class:
- IsmFormat
public abstract static class IsmFormat.IsmShard extends java.lang.ObjectA shard descriptor containing shard id, the data block offset, and the index offset for the given shard.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBlockOffset()Return the absolute position within the Ism file where the data block begins.intgetId()Return the shard id.longgetIndexOffset()Return the absolute position within the Ism file where the index block begins.static IsmFormat.IsmShardof(int id, long blockOffset)Returns an IsmShard with the given id, block offset and no index offset.static IsmFormat.IsmShardof(int id, long blockOffset, long indexOffset)Returns an IsmShard with the given id, block offset, and index offset.IsmFormat.IsmShardwithIndexOffset(long indexOffset)Returns a new IsmShard like this one with the specified index offset.
-
-
-
Method Detail
-
of
public static IsmFormat.IsmShard of(int id, long blockOffset)
Returns an IsmShard with the given id, block offset and no index offset.
-
of
public static IsmFormat.IsmShard of(int id, long blockOffset, long indexOffset)
Returns an IsmShard with the given id, block offset, and index offset.
-
getId
public int getId()
Return the shard id.
-
getBlockOffset
public long getBlockOffset()
Return the absolute position within the Ism file where the data block begins.
-
getIndexOffset
public long getIndexOffset()
Return the absolute position within the Ism file where the index block begins. ThrowsIllegalStateExceptionif the index offset was never specified.
-
withIndexOffset
public IsmFormat.IsmShard withIndexOffset(long indexOffset)
Returns a new IsmShard like this one with the specified index offset.
-
-