presto-elasticsearch/src/main/java/io/prestosql/elasticsearch/ElasticsearchPageSource.java/ElasticsearchPageSource/isFinished
class ElasticsearchPageSource:    @Override
    public boolean isFinished()
    {
        return finished || !iterator.hasNext();
    }