KIP-418 — A method-chaining way to branch KStream
Accepted Kafka 2.8 Streams
Replaces KStream#branch(Predicate...) with a fluent split()/branch()/defaultBranch() API returning a named Map<String, KStream> instead of an array. Eliminates the impedance mismatch between Java generics and arrays, removes magic-number array indexing, and enables dynamic branch construction without unchecked casts.
Details
| Author | Ivan Ponomarev |
| Status | Accepted |
| Kafka Version | 2.8 |
| JIRA | KAFKA-5488 |
| Wiki | View on Apache Wiki |
| Created | 2019-01-18 |
| Last Modified | 2021-01-19 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.