kafka-streams-machine-learning-examples icon indicating copy to clipboard operation
kafka-streams-machine-learning-examples copied to clipboard

Use `transform` instead of `foreach`

Open guozhangwang opened this issue 8 years ago • 0 comments

Hey Kai,

I think you can use transform that can return a new stream, with the similar function but return the result p as the value and even with a new key (right now it is null).

By doing this you also do not need to declare a static String airlineDelayPreduction :)

guozhangwang avatar Sep 08 '17 00:09 guozhangwang