I am trying to see how GlobalKtable works in kafka and for that i am trying to write sample code. I have created globalKtable but i want to see that too I have tried peek function but its not available, now i am trying by view but its giving compile time error.
what is the write way to see globalktable in scala?
what i have tried is
'''
val genderGlobalTable: GlobalKTable[String, abc] = builder
.globalTable(kafkaStreamConfig.getString("abc-topic"),
Materialized.as("abcStore")
.withKeySerde(stringSerde)
.withValueSerde(abcSerde))
implicit val streams: KafkaStreams = new KafkaStreams(builder.build(), properties)
val view: ReadOnlyKeyValueStore[String, abc] = streams
.store("abcStore", new QueryableStoreType[abc])
'''