private void analyzeHit(Hit hit) {
        if (hit instanceof HitGroup) {
            ((HitGroup)hit).analyze();
        }
        if (!hit.isAuxiliary())
            concreteHitCount++;

        if (!hit.isCached())
            notCachedCount++;

        if (SortDataHitSorter.isSortable(hit, currentSorting())) {
            hitsWithSortData++;
        }
    }
Ensures result invariants. Must be called when a hit is added to this result.
container-search/src/main/java/com/yahoo/search/result/HitGroup.java