presto-main/src/main/java/io/prestosql/operator/AssignUniqueIdOperator.java/AssignUniqueIdOperator/needsInput
class AssignUniqueIdOperator:    @Override
    public boolean needsInput()
    {
        return !finishing && inputPage == null;
    }