THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
StreamsBuilder builder = new StreamsBuilder();
final Serde<String> stringSerde = Serdes.String();
builder
.table(input, Consumed.with(stringSerde, stringSerde))
// key is not changed
.groupBy(KeyValue::pair, Grouped.with(stringSerde, stringSerde))
.count()
.toStream()
.to(output);
Topology topology = builder.build(); |
...