Created
March 8, 2021 19:46
-
-
Save jacace/06add2ba5eb13c822d15f9dde9193a91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StreamsBuilder builder = new StreamsBuilder(); | |
KStream<String, String> streamLeft = builder.stream("TopicIn1"); | |
KStream<String, String> streamRight = builder.stream("TopicIn2"); | |
KStream<String, String> joined = streamLeft.join(streamRight, | |
(leftValue, rightValue) -> "left=" + leftValue + ", right=" + rightValue, /* ValueJoiner */ | |
JoinWindows.of(5000), | |
Joined.with( | |
Serdes.String(), /* key */ | |
Serdes.String(), /* left value */ | |
Serdes.String()) /* right value */ | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment