public boolean useSinglePass() {
        return needDeepResultCollection() || getForceSinglePass();
    }
Returns whether grouping should be executed in a single pass.
searchlib/src/main/java/com/yahoo/searchlib/aggregation/Grouping.java