The logic of CardinalityAggregatorColumnSelectorStrategyFactory could be inlined in CardinalityAggregatorFactory.factorize() and factorizeBuffered() methods, and the logic of CardinalityAggregatorColumnSelectorStrategy could be expressed in subclasses of CardinalityBufferAggregator and CardinalityAggregator.
This change is similar to what is proposed here: #6397 (comment)
The logic of
CardinalityAggregatorColumnSelectorStrategyFactorycould be inlined inCardinalityAggregatorFactory.factorize()andfactorizeBuffered()methods, and the logic ofCardinalityAggregatorColumnSelectorStrategycould be expressed in subclasses ofCardinalityBufferAggregatorandCardinalityAggregator.This change is similar to what is proposed here: #6397 (comment)