presto-spi/src/main/java/io/prestosql/spi/connector/RecordPageSource.java/RecordPageSource/isFinished
class RecordPageSource:    @Override
    public boolean isFinished()
    {
        return closed && pageBuilder.isEmpty();
    }