Class HsFileDataIndex.ReadableRegion
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.hybrid.HsFileDataIndex.ReadableRegion
-
- Enclosing interface:
- HsFileDataIndex
public static class HsFileDataIndex.ReadableRegion extends Object
Represents a series of physically continuous buffers in the file, which are readable, from the same subpartition, and has sequential buffer index.For efficiency, the index may not remember offsets of all buffers. Thus, a region is described as: starting from the
offset, skip the firstnumSkipbuffers and include the nextnumReadablebuffers.
-
-
Field Summary
Fields Modifier and Type Field Description intnumReadableintnumSkipFrom theoffset, number of buffers to skip.longoffsetThe file offset to begin with.
-
Constructor Summary
Constructors Constructor Description ReadableRegion(int numSkip, int numReadable, long offset)
-
-
-
Field Detail
-
numSkip
public final int numSkip
From theoffset, number of buffers to skip.
-
numReadable
public final int numReadable
-
offset
public final long offset
The file offset to begin with.
-
-