presto-orc/src/main/java/io/prestosql/orc/stream/CompressedOrcChunkLoader.java/CompressedOrcChunkLoader/seekToCheckpoint
class CompressedOrcChunkLoader:    @Override
    public void seekToCheckpoint(long checkpoint)
            throws IOException
    {
        int compressedOffset = decodeCompressedBlockOffset(checkpoint);
        if (compressedOffset >= dataReader.getSize()) {
            throw new OrcCorruptionException(dataReader.getOrcDataSourceId(), "Seek past end of stream");
        }
        // is the compressed offset within the current compressed buffer
        if (compressedBufferStart <= compressedOffset && compressedOffset < compressedBufferStart + compressedBufferStream.length()) {
            compressedBufferStream.setPosition(compressedOffset - compressedBufferStart);
        }
        else {
            compressedBufferStart = compressedOffset;
            compressedBufferStream = EMPTY_SLICE.getInput();
        }

        nextUncompressedOffset = decodeDecompressedOffset(checkpoint);
        lastCheckpoint = checkpoint;
    }