Class GroupByRowProcessor

java.lang.Object
org.apache.druid.query.groupby.epinephelinae.GroupByRowProcessor

public class GroupByRowProcessor extends Object
Utility class that knows how to do higher-level groupBys: i.e. group a Sequence of ResultRow originating from a subquery. It uses a buffer provided by a GroupByQueryResources. The output rows may not be perfectly grouped and will not have PostAggregators applied, so they should be fed into GroupingEngine.mergeResults(org.apache.druid.query.QueryRunner<org.apache.druid.query.groupby.ResultRow>, org.apache.druid.query.groupby.GroupByQuery, org.apache.druid.query.context.ResponseContext). This class has two primary uses: processing nested groupBys, and processing subtotals. This class has some similarity to GroupByMergingQueryRunner, but is different enough that it deserved to be its own class. Some common code between the two classes is in RowBasedGrouperHelper.