presto-hive/src/main/java/io/prestosql/plugin/hive/util/TempFileReader.java/TempFileReader/computeNext
class TempFileReader:    @Override
    protected Page computeNext()
    {
        try {
            if (Thread.currentThread().isInterrupted()) {
                throw new InterruptedIOException();
            }

            Page page = reader.nextPage();
            if (page == null) {
                return endOfData();
            }

            // eagerly load the page
            return page.getLoadedPage();
        }
        catch (IOException e) {
            throw handleException(e);
        }
    }