@Override public void consume(BulletRecord data) { Map<String, String> fieldToValues = getFields(data); // More optimal than calling composeFields String key = getFieldsAsString(fields, fieldToValues); // Set the record and the group values into the container. The metrics are already initialized. container.setCachedRecord(data); container.setGroupFields(fieldToValues); sketch.update(key, container); }