/** * Merge previous and new taskName to partition mapping and write it. * @param prevChangelogEntries The previous map of taskName to changelog partition. * @param newChangelogEntries The new map of taskName to changelog partition. */ public void updatePartitionMapping(Map<TaskName, Integer> prevChangelogEntries, Map<TaskName, Integer> newChangelogEntries) { Map<TaskName, Integer> combinedEntries = new HashMap<>(newChangelogEntries); combinedEntries.putAll(prevChangelogEntries); writePartitionMapping(combinedEntries); }
/** * Merge previous and new taskName to partition mapping and write it. * @param prevChangelogEntries The previous map of taskName to changelog partition. * @param newChangelogEntries The new map of taskName to changelog partition. */ public void updatePartitionMapping(Map<TaskName, Integer> prevChangelogEntries, Map<TaskName, Integer> newChangelogEntries) { Map<TaskName, Integer> combinedEntries = new HashMap<>(newChangelogEntries); combinedEntries.putAll(prevChangelogEntries); writePartitionMapping(combinedEntries); }
/** * Merge previous and new taskName to partition mapping and write it. * @param prevChangelogEntries The previous map of taskName to changelog partition. * @param newChangelogEntries The new map of taskName to changelog partition. */ public void updatePartitionMapping(Map<TaskName, Integer> prevChangelogEntries, Map<TaskName, Integer> newChangelogEntries) { Map<TaskName, Integer> combinedEntries = new HashMap<>(newChangelogEntries); combinedEntries.putAll(prevChangelogEntries); writePartitionMapping(combinedEntries); }
/** * Merge previous and new taskName to partition mapping and write it. * @param prevChangelogEntries The previous map of taskName to changelog partition. * @param newChangelogEntries The new map of taskName to changelog partition. */ public void updatePartitionMapping(Map<TaskName, Integer> prevChangelogEntries, Map<TaskName, Integer> newChangelogEntries) { Map<TaskName, Integer> combinedEntries = new HashMap<>(newChangelogEntries); combinedEntries.putAll(prevChangelogEntries); writePartitionMapping(combinedEntries); }
/** * Merge previous and new taskName to partition mapping and write it. * @param prevChangelogEntries The previous map of taskName to changelog partition. * @param newChangelogEntries The new map of taskName to changelog partition. */ public void updatePartitionMapping(Map<TaskName, Integer> prevChangelogEntries, Map<TaskName, Integer> newChangelogEntries) { Map<TaskName, Integer> combinedEntries = new HashMap<>(newChangelogEntries); combinedEntries.putAll(prevChangelogEntries); writePartitionMapping(combinedEntries); }