public interface FileDataIndexRegionHelper<T extends FileDataIndexRegionHelper.Region>
FileDataIndexRegionHelper
is responsible for writing a FileDataIndexRegionHelper.Region
to the file or
reading a FileDataIndexRegionHelper.Region
from file.Modifier and Type | Interface and Description |
---|---|
static interface |
FileDataIndexRegionHelper.Region
A
FileDataIndexRegionHelper.Region Represents a series of buffers that are:
From the same subpartition
Logically (i.e. |
Modifier and Type | Method and Description |
---|---|
T |
readRegionFromFile(FileChannel channel,
long fileOffset)
Read a region from the file.
|
void |
writeRegionToFile(FileChannel channel,
T region)
Write the region to the file.
|
void writeRegionToFile(FileChannel channel, T region) throws IOException
channel
- the file channel to write the regionregion
- the region to be written to the fileIOException
T readRegionFromFile(FileChannel channel, long fileOffset) throws IOException
channel
- the file channel to read the regionfileOffset
- the current region data is from this file offset, so start reading the file
from the offset when reading the regionIOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.