</parent>
<groupId>de.juplo.kafka.wordcount</groupId>
<artifactId>popular</artifactId>
- <version>1.0.0</version>
+ <version>1.1.0</version>
<name>Wordcount-Popular-Words</name>
<description>Query stream-processor that gives access to the most popular words</description>
<properties>
instantOfSecond(20),
InputUser.of(KLAUS),
InputWord.of(KLAUS, WORD_S)),
+ TestMessage.of(
+ instantOfSecond((int)WINDOW_SIZE.toSeconds()),
+ InputUser.of(PETER),
+ InputWord.of(PETER, WORD_HALLO)),
+ TestMessage.of(
+ instantOfSecond((int)WINDOW_SIZE.toSeconds()),
+ InputUser.of(KLAUS),
+ InputWord.of(KLAUS, WORD_MÜSCH)),
+ TestMessage.of(
+ instantOfSecond((int)WINDOW_SIZE.toSeconds()),
+ InputUser.of(PETER),
+ InputWord.of(PETER, WORD_WELT)),
+ TestMessage.of(
+ instantOfSecond((int)WINDOW_SIZE.toSeconds()),
+ InputUser.of(KLAUS),
+ InputWord.of(KLAUS, WORD_S)),
+ TestMessage.of(
+ instantOfSecond((int)WINDOW_SIZE.toSeconds()),
+ InputUser.of(PETER),
+ InputWord.of(PETER, WORD_BOÄH)),
};
private static Instant instantOfSecond(int second)
KeyValue.pair(
WINDOWED_WORD_HALLO,
OutputWordCounter.of(WORD_HALLO,1)),
- KeyValue.pair(
- WINDOWED_WORD_MÜSCH,
- OutputWordCounter.of(WORD_MÜSCH,1)),
- KeyValue.pair(
- WINDOWED_WORD_WELT,
- OutputWordCounter.of(WORD_WELT,1)),
KeyValue.pair(
WINDOWED_WORD_MÜSCH,
OutputWordCounter.of(WORD_MÜSCH,2)),
- KeyValue.pair(
- WINDOWED_WORD_S,
- OutputWordCounter.of(WORD_S,1)),
- KeyValue.pair(
- WINDOWED_WORD_BOÄH,
- OutputWordCounter.of(WORD_BOÄH,1)),
KeyValue.pair(
WINDOWED_WORD_WELT,
OutputWordCounter.of(WORD_WELT,2)),
- KeyValue.pair(
- WINDOWED_WORD_BOÄH,
- OutputWordCounter.of(WORD_BOÄH,2)),
- KeyValue.pair(
- WINDOWED_WORD_S,
- OutputWordCounter.of(WORD_S,2)),
KeyValue.pair(
WINDOWED_WORD_BOÄH,
OutputWordCounter.of(WORD_BOÄH,3)),