projects
/
demos
/
kafka
/
deduplication
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c69815
)
Simplified code using a lambda
author
Kai Moritz
<kai@juplo.de>
Sun, 5 May 2024 05:44:43 +0000
(07:44 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 5 May 2024 05:54:08 +0000
(07:54 +0200)
src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java
b/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java
index
e1027d0
..
4376f30
100644
(file)
--- a/
src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java
+++ b/
src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java
@@
-79,14
+79,7
@@
public class Deduplicator
builder
.<String, String>stream("input")
.flatTransformValues(
- new ValueTransformerSupplier<String, Iterable<String>>()
- {
- @Override
- public ValueTransformer<String, Iterable<String>> get()
- {
- return new DeduplicationTransformer();
- }
- },
+ () -> new DeduplicationTransformer(),
DeduplicationTransformer.STORE)
.to("output");