import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.*;
-import org.apache.kafka.streams.kstream.Consumed;
-import org.apache.kafka.streams.kstream.KStream;
-import org.apache.kafka.streams.kstream.KTable;
-import org.apache.kafka.streams.kstream.Materialized;
+import org.apache.kafka.streams.kstream.*;
import org.apache.kafka.streams.state.HostInfo;
import org.apache.kafka.streams.state.KeyValueBytesStoreSupplier;
import org.apache.kafka.streams.state.QueryableStoreTypes;
.join(users, (ranking, user) -> UserRanking.of(
user.getFirstName(),
user.getLastName(),
- ranking.getEntries()))
+ ranking.getEntries()),
+ Joined.keySerde(Serdes.String()))
.toTable(
Materialized
.<String, UserRanking>as(rankingStoreSupplier)