counter: 1.4.0 - Refined output JSON to match the new general stats-format counter-1.4.0
authorKai Moritz <kai@juplo.de>
Sat, 22 Jun 2024 12:22:35 +0000 (14:22 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 22 Jun 2024 15:33:20 +0000 (17:33 +0200)
commit123d1d3df7e3665dbe511a2e7d7398e0aa235a63
treee54e47e97228654c53ce2f06c2cc540aacdee095
parentf9156ed2e1f43b64d39cc39a13d12ca8c0d24219
counter: 1.4.0 - Refined output JSON to match the new general stats-format

* Changed the type-mapping for `Word` from `word` to `key`.
* Refined the class `Word`, that defines the JSON for the output key.
** Added attribute `type` with fixed value `POPULAR`.
** Renamed attribute `user` to `channel`.
** Renamed attribute `word` to `key`.
* Refined the class `WordCounter`, that defines the JSON for the output
  value.
** Renamed attribute `word` to `key`.
* Adapted test-classes and -cases accordingly.
pom.xml
src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java
src/main/java/de/juplo/kafka/wordcount/counter/UserWord.java [new file with mode: 0644]
src/main/java/de/juplo/kafka/wordcount/counter/Word.java
src/main/java/de/juplo/kafka/wordcount/counter/WordCounter.java
src/test/java/de/juplo/kafka/wordcount/counter/CounterApplicationIT.java
src/test/java/de/juplo/kafka/wordcount/counter/TestData.java
src/test/java/de/juplo/kafka/wordcount/top10/TestOutputWord.java
src/test/java/de/juplo/kafka/wordcount/top10/TestOutputWordCounter.java