public void updateStates(final Map<String, Long> topicNameToIncrements) {
    for (final Entry<String, Long> entry : topicNameToIncrements.entrySet()) {
      topicNameToEventCount.merge(entry.getKey(), entry.getValue(), Long::sum);
    }
  }
Updates the subscription state by incrementing the event count for multiple topics.

@param topicNameToIncrements a map where the key is the topic name and the value is the number
    of events to add to the count
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/SubscriptionStates.java