Kafka Streams join by key with complex condition
问题 I'm trying to join KStream with GlobalKTable by key, but with specific logic. StreamsBuilder builder = new StreamsBuilder(); KStream<String, Integer> stream = builder.stream(inputTopic1); // key = "ABC" GlobalKTable<String, Integer> table = builder.globalTable(inputTopic2); // key = "ABC" stream.join(table, // join first by "ABC" = "ABC", then by "AB" = "AB", then by "A" = "A" (key, value) -> key, (valueLeft, valueRigth) -> {/* identify by which condition the join was performed */}); For