public void update(final ProcessorMetadata other) {
        if (other == null) {
            return;
        }
        for (final Map.Entry<String, Long> kv : other.metadata.entrySet()) {
            final Long value = metadata.get(kv.getKey());
            if (value == null || value < kv.getValue()) {
                metadata.put(kv.getKey(), kv.getValue());
            }
        }
    }
Merge with other metadata. Missing keys will be added. Existing key's value will be updated to
max
@param other Other metadata to be merged
streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorMetadata.java