public static class ProducerMergedPartitionFileIndex.FixedSizeRegion extends Object implements FileDataIndexRegionHelper.Region
Note that the region has a fixed size.
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
REGION_SIZE |
| 构造器和说明 |
|---|
FixedSizeRegion(int firstBufferIndex,
long regionStartOffset,
long regionEndOffset,
int numBuffers) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containBuffer(int bufferIndex)
Whether the current region contain the buffer.
|
int |
getFirstBufferIndex()
Get the first buffer index of this region.
|
int |
getNumBuffers()
Get the number of buffers in this region.
|
long |
getRegionEndOffset()
Get the file end offset of the region.
|
long |
getRegionStartOffset()
Get the file start offset of this region.
|
int |
getSize()
Get the total size in bytes of this region, including the fields and the buffers.
|
public static final int REGION_SIZE
public FixedSizeRegion(int firstBufferIndex,
long regionStartOffset,
long regionEndOffset,
int numBuffers)
public boolean containBuffer(int bufferIndex)
FileDataIndexRegionHelper.RegioncontainBuffer 在接口中 FileDataIndexRegionHelper.RegionbufferIndex - the specific buffer indexpublic int getSize()
getSize 在接口中 FileDataIndexRegionHelper.Regionpublic long getRegionStartOffset()
FileDataIndexRegionHelper.Regionpublic long getRegionEndOffset()
FileDataIndexRegionHelper.Regionpublic int getNumBuffers()
FileDataIndexRegionHelper.Regionpublic int getFirstBufferIndex()
FileDataIndexRegionHelper.RegionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.