Created
September 15, 2017 14:32
-
-
Save bbejeck/fe757ba3f2ee45c67f0d2f4a3a877cbf to your computer and use it in GitHub Desktop.
Builds The KStream and GlobalKTable
This file contains hidden or 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
// configuration and Serde creation left out for clarity | |
KStream<String, String> dataByAirportStream = builder.stream("raw-airline-data"); | |
GlobalKTable<String, byte[]> regressionsByAirPortTable = builder.globalTable(Serdes.String(), | |
byteArraySerde, | |
"onlineRegression-by-airport"); | |
// stream reads raw data joins with coefficients then makes prediction | |
dataByAirportStream.join(regressionsByAirPortTable, | |
(k, v) -> k, | |
DataRegression::new) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment