32 uint32_t default_timeout_ms)
33 : m_props(props), m_range_locator(range_locator),
34 m_comm(conn_manager->get_comm()), m_conn_manager(conn_manager),
35 m_hyperspace(hyperspace), m_app_queue(app_queue),
36 m_namemap(namemap), m_timeout_ms(default_timeout_ms) {
54 TableMap::iterator it =
m_table_map.find(table_name);
57 it->second->refresh();
74 TableMap::const_iterator it =
m_table_map.find(table_name);
78 schema = it->second->schema()->render_xml(with_ids);
84 TableMap::const_iterator it =
m_table_map.find(table_name);
88 output_schema = make_shared<Schema>(*(it->second->schema()));
95 TableMap::iterator it =
m_table_map.find(table_name);
107 (*it).second->invalidate();
TablePtr get(const std::string &table_name, int32_t flags)
std::shared_ptr< RangeLocator > RangeLocatorPtr
Smart pointer to RangeLocator.
bool get_schema_str(const std::string &table_name, std::string &output_schema, bool with_ids=false)
RangeLocatorPtr m_range_locator
ApplicationQueueInterfacePtr m_app_queue
bool remove(const std::string &table_name)
bool get_schema(const std::string &table_name, SchemaPtr &output_schema)
std::shared_ptr< Session > SessionPtr
NameIdMapperPtr m_namemap
std::shared_ptr< Properties > PropertiesPtr
Compatibility Macros for C/C++.
std::shared_ptr< ApplicationQueueInterface > ApplicationQueueInterfacePtr
Smart pointer to ApplicationQueueInterface.
TableCache(PropertiesPtr &, RangeLocatorPtr &, ConnectionManagerPtr &, Hyperspace::SessionPtr &, ApplicationQueueInterfacePtr &, NameIdMapperPtr &namemap, uint32_t default_timeout_ms)
ConnectionManagerPtr m_conn_manager
TablePtr get_unlocked(const std::string &table_name, int32_t flags)
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
virtual void reconnected()
Hyperspace::SessionPtr m_hyperspace
std::shared_ptr< ConnectionManager > ConnectionManagerPtr
Smart pointer to ConnectionManager.
std::shared_ptr< NameIdMapper > NameIdMapperPtr
Smart pointer to NameIdMapper.
std::shared_ptr< Table > TablePtr