presto-main/src/main/java/io/prestosql/operator/GroupIdOperator.java/GroupIdOperator/isFinished
class GroupIdOperator:    @Override
    public boolean isFinished()
    {
        return finishing && currentPage == null;
    }