如果可能的话,我将如何更改?
input
.filter((key, product) -> product.getId().equals("MyInterestingThing"))
.map((key, value) -> new KeyValue<>(value, value))
.groupByKey(new JsonSerde<>(Product.class), new JsonSerde<>(Product.class))
.count(TimeWindows.of(5000), "BulkInterestingThing")
.toStream()
.map((key, value) -> new KeyValue<>(key.key().id, value));