presto-main/src/main/java/io/prestosql/operator/StreamingAggregationOperator.java/StreamingAggregationOperator/needsInput
class StreamingAggregationOperator:    @Override
    public boolean needsInput()
    {
        return !finishing && outputPages.isEmpty();
    }