*/
public class CachedOrdsCountingFacetsAggregator extends IntRollupFacetsAggregator {
@Override
public void aggregate(MatchingDocs matchingDocs, CategoryListParams clp, FacetArrays facetArrays) throws IOException {
final CachedOrds ords = OrdinalsCache.getCachedOrds(matchingDocs.context, clp);
if (ords == null) {
return; // this segment has no ordinals for the given category list
}
final int[] counts = facetArrays.getIntArray();
int doc = 0;