Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kafka Streams Topology for online predictions
dataByAirportStream.join(regressionsByAirPortTable,(k, v) -> k, DataRegression::new)
.mapValues(Predictor::predict)
.filter((k, v) -> v != null)
.peek((k, v) -> System.out.println("Prediction " + v))
.to("predictions");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment