[ 
https://issues.apache.org/jira/browse/KAFKA-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthias J. Sax updated KAFKA-5488:
-----------------------------------
    Affects Version/s: 0.11.0.0

> KStream.branch should not return a Array of streams we have to access by 
> known index
> ------------------------------------------------------------------------------------
>
>                 Key: KAFKA-5488
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5488
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>    Affects Versions: 0.11.0.0, 0.10.2.1
>            Reporter: Marcel Silberhorn
>              Labels: needs-kip
>
> some details and thoughts about:
> https://gitlab.com/childno.de/apache_kafka/snippets/1665655
> long story short: it's a mess to get a {{KStream<>[]}} out from 
> {{KStream<>branch(Predicate<>...)}}. It breaks the fluent API and it produces 
> bad code which is not that good to maintain since you have to know the right 
> index for an unnamed branching stream.
> Quick idea, s.th. like {{void branch(final BranchDefinition<Predicate<>, 
> Consumer<KStream<>>>... branchPredicatesAndHandlers);}} where you can write 
> branches/streams code nested where it belongs to



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to