Created
September 15, 2017 14:00
-
-
Save bbejeck/dff14a64708c009c34854e69572f582f to your computer and use it in GitHub Desktop.
Kafka Streams Topology for online predictions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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