19 #ifndef TABEL_VIEW_HPP_
20 #define TABEL_VIEW_HPP_
22 #include <pulsar/Result.h>
23 #include <pulsar/TableViewConfiguration.h>
24 #include <pulsar/defines.h>
27 #include <unordered_map>
34 typedef std::function<void(
const std::string& key,
const std::string& value)> TableViewAction;
69 bool retrieveValue(
const std::string& key, std::string& value);
78 bool getValue(
const std::string& key, std::string& value)
const;
85 bool containsKey(
const std::string& key)
const;
90 std::unordered_map<std::string, std::string> snapshot();
95 std::size_t size()
const;
101 void forEach(TableViewAction action);
107 void forEachAndListen(TableViewAction action);
120 typedef std::shared_ptr<TableViewImpl> TableViewImplPtr;
121 TableViewImplPtr impl_;
124 friend class PulsarFriend;
125 friend class ClientImpl;