[ https://issues.apache.org/jira/browse/KAFKA-4217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16520172#comment-16520172 ]
ASF GitHub Bot commented on KAFKA-4217: --------------------------------------- cadonna opened a new pull request #5273: KAFKA-4217: Add KStream.flatTransform URL: https://github.com/apache/kafka/pull/5273 - Adds flatTrasform method in KStream - Adds processor supplier and processor for flatTransform This contribution is my original work and I license the work to the project under the project's open source license. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > KStream.transform equivalent of flatMap > --------------------------------------- > > Key: KAFKA-4217 > URL: https://issues.apache.org/jira/browse/KAFKA-4217 > Project: Kafka > Issue Type: Improvement > Components: streams > Affects Versions: 0.10.0.1 > Reporter: Elias Levy > Assignee: Bruno Cadonna > Priority: Major > Labels: api, needs-kip, newbie > > {{KStream.transform}} gives you access to state stores while allowing you to > return zero or one transformed {{KeyValue}}. Alas, it is unclear what method > you should use if you want to access state stores and return zero or multiple > {{KeyValue}}. Presumably you can use {{transform}}, always return {{null}}, > and use {{ProcessorContext.forward}} to emit {{KeyValues}}. > It may be good to introduce a {{transform}}-like {{flatMap}} equivalent, or > allow store access from other {{KStream}} methods, such as {{flatMap}} itself. -- This message was sent by Atlassian JIRA (v7.6.3#76005)