{
Integer partition = record.partition();
String key = record.key() == null ? "NULL" : record.key().toString();
+
+ if (!seen.containsKey(partition))
+ seen.put(partition, new HashMap<>());
+
Map<String, Long> byKey = seen.get(partition);
if (!byKey.containsKey(key))
byKey.put(key, seenByKey);
}
- public void addPartition(Integer partition, Map<String, Long> statistics)
- {
- seen.put(partition, statistics);
- }
-
- public Map<String, Long> removePartition(Integer partition)
- {
- return seen.remove(partition);
- }
-
public Map<Integer, Map<String, Long>> getSeen()
{