private Hit convertVdsHit(String summaryClass, VdsHit grpHit) {
        FastHit hit = new FastHit();
        hit.setRelevance(grpHit.getRank());
        if (grpHit.getSummary().getData().length > 0) {
            GroupingListHit hitContext = (GroupingListHit)grpHit.getContext();
            if (hitContext == null) {
                throw new NullPointerException("Hit has no context.");
            }
            DocsumDefinitionSet defs = hitContext.getDocsumDefinitionSet();
            defs.lazyDecode(summaryClass, grpHit.getSummary().getData(), hit);
            hit.setField(Hit.SDDOCNAME_FIELD, hitContext.getSchema().name());
            hit.setFilled(summaryClass);
            hit.setQuery(hitContext.getQuery());
        }
        return hit;
    }
Creates a new instance of this class.

@param searcher The searcher that owns this converter.
container-search/src/main/java/com/yahoo/search/grouping/vespa/HitConverter.java