22 #ifndef Hypertable_Lib_TableCache_h
23 #define Hypertable_Lib_TableCache_h
35 #include <unordered_map>
51 TablePtr get(
const std::string &table_name, int32_t flags);
61 bool get_schema_str(
const std::string &table_name, std::string &output_schema,
bool with_ids=
false);
75 bool remove(
const std::string &table_name);
88 typedef std::unordered_map<String, TablePtr>
TableMap;
107 #endif // Hypertable_Lib_TableCache_h
A callback object derived from this class gets passed into the constructor of Hyperspace.
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 get_schema(const std::string &table_name, SchemaPtr &output_schema)
std::unordered_map< String, TablePtr > TableMap
std::shared_ptr< Session > SessionPtr
NameIdMapperPtr m_namemap
std::shared_ptr< Properties > PropertiesPtr
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
std::shared_ptr< TableCache > TableCachePtr
Smart pointer to TableCache.
Entry point to AsyncComm service.
TablePtr get_unlocked(const std::string &table_name, int32_t flags)
virtual void disconnected()
A String class based on std::string.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
virtual void reconnected()
Declarations for ApplicationQueueInterface.
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