presto-main/src/main/java/io/prestosql/operator/StreamingAggregationOperator.java/StreamingAggregationOperator/getOutput
class StreamingAggregationOperator:    @Override
    public Page getOutput()
    {
        if (!outputPages.isEmpty()) {
            return outputPages.removeFirst();
        }

        return null;
    }