@Override
    protected void onDeserialize(Deserializer buf) {
        super.onDeserialize(buf);
        summaryClass = getUtf8(buf);
        maxHits = buf.getInt(null);
        int numHits = buf.getInt(null);
        for (int i = 0; i < numHits; i++) {
            Hit h = (Hit)deserializeOptional(buf);
            hits.add(h);
        }
    }
Adds a hit to this aggregation result

@param h the hit
@return this object
searchlib/src/main/java/com/yahoo/searchlib/aggregation/HitsAggregationResult.java