KIP-313 — Add KStream.flatTransform and KStream.flatTransformValues
Accepted Kafka 2.2 Streams
KIP-313 adds `KStream.flatTransform()` and `KStream.flatTransformValues()` operators to the Kafka Streams DSL, enabling stateful one-to-many record transformations. The existing `KStream.transform()` only supports one-to-one (or zero-to-one) transformations via `Transformer`, requiring users to drop to the lower-level Processor API for stateful fan-out operations.
Details
| Author | Bruno Cadonna |
| Status | Accepted |
| Kafka Version | 2.2 |
| JIRA | KAFKA-4217 |
| Wiki | View on Apache Wiki |
| Created | 2018-06-08 |
| Last Modified | 2019-04-16 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.