.withValueSerde(new JsonSerde().copyWithType(User.class)));
KStream<String, Ranking> rankings = builder
.<Key, Ranking>stream(rankingInputTopic)
- .map((key, value) -> new KeyValue<>(key.getUsername(), value));
+ .map((key, value) -> new KeyValue<>(key.getUser(), value));
rankings
.join(users, (ranking, user) -> UserRanking.of(
{
Entry entry = new Entry();
entry.setWord(testEntry.getWord());
- entry.setCount(testEntry.getCounter());
+ entry.setCounter(testEntry.getCounter());
return entry;
}
private static KeyValue<TestUser, TestRanking>[] TOP10_MESSAGES = new KeyValue[]