so something added in 210 called a table view which allows you to have a continuously updated key value map view of a compacted topic and Pulsar clients allow you to fetch all those messages from a topic and construct a map the latest values right so if you want to have if you have a key based topic and you want to get just the latest value and every time a value gets updated be notified of that the table view is the API that allows you to do that and you can trigger these things uh you know
you can be notified when something changes notified when anything happens you can update your UI on that that looks something like this so again a topic can have this these are time not topic zeros but time so Time Zero you publish a message with key one and value one your table view would just have one key and one value uh later on T additional time later you publish a separate message with a separate key value now your cable view can see both of those uh later on if you override the value of key one with
a different value then you that is reflected automatically as well so older data skipped and newer data is made available to you uh and that information is presented to you naturally you don't have to sort of scan and update this information the table view API provides that for you automatically and here is the semantics for creating uh that as well we've kind of skipped on how to create a client first but we'll go ahead and say this is a table view Builder you just have to specify schema in this case you know the messages are
going to be strings and then you know the topic tenant and namespace associated with that as well and then you create that information