projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
133a57f
)
Für null-Keys wird der String NULL gezählt
author
Kai Moritz
<kai@juplo.de>
Sat, 2 Apr 2022 13:11:40 +0000
(15:11 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sat, 2 Apr 2022 13:11:40 +0000
(15:11 +0200)
src/main/java/de/juplo/kafka/EndlessConsumer.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/EndlessConsumer.java
b/src/main/java/de/juplo/kafka/EndlessConsumer.java
index
063a09e
..
127c3d3
100644
(file)
--- a/
src/main/java/de/juplo/kafka/EndlessConsumer.java
+++ b/
src/main/java/de/juplo/kafka/EndlessConsumer.java
@@
-94,7
+94,7
@@
public class EndlessConsumer implements Runnable
);
Integer partition = record.partition();
- String key = record.key();
+ String key = record.key()
== null ? "NULL" : record.key()
;
if (!seen.containsKey(partition))
seen.put(partition, new HashMap<>());