presto-main/src/main/java/io/prestosql/operator/ValuesOperator.java/ValuesOperator/isFinished
class ValuesOperator:    @Override
    public boolean isFinished()
    {
        return !pages.hasNext();
    }