{
// position of the chunk
int idx = (int) (position / parameters.chunkLength());
if (idx >= chunkOffsets.size)
throw new CorruptSSTableException(new EOFException(), indexFilePath);
long chunkOffset = chunkOffsets.get(idx);
long nextChunkOffset = (idx + 1 == chunkOffsets.size)
? compressedFileLength
: chunkOffsets.get(idx + 1);