Last active
June 20, 2017 05:56
-
-
Save enothereska/019b305c4d91d229a20a280dccd9bcbc to your computer and use it in GitHub Desktop.
A KTable example
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
KTable<Windowed<String>, Long> aggregated = inputStream | |
.groupByKey() | |
.reduce((aggValue, newValue) -> aggValue + newValue, | |
TimeWindows.of(TimeUnit.MINUTES.toMillis(2)) | |
.until(TimeUnit.DAYS.toMillis(1) /* keep for one day */), | |
"queryStoreName"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment