28 #ifndef Hypertable_HyperspaceTableCache_h
29 #define Hypertable_HyperspaceTableCache_h
67 const String &toplevel_dir);
74 bool get(
const String &table_id, Entry &entry);
82 const std::vector<Hyperspace::DirEntryAttr> &listing);
88 const std::vector<Hyperspace::DirEntryAttr> &listing);
103 #endif // Hypertable_HyperspaceTableCache_h
Provides efficient lookup of Hyperspace table data.
Cache entry for Hyperspace table data.
std::string String
A String is simply a typedef to std::string.
HyperspaceTableCache(Hyperspace::SessionPtr &hyperspace, const String &toplevel_dir)
Constructor.
std::shared_ptr< Session > SessionPtr
void map_maintenance_disabled(const String &parent, const std::vector< Hyperspace::DirEntryAttr > &listing)
Recursively updates maintenance_disabled field in map entries.
void map_table_schemas(const String &parent, const std::vector< Hyperspace::DirEntryAttr > &listing)
Recursively populates map with table schemas.
SchemaPtr schema
Smart pointer to Schema object.
std::map< String, Entry > TableEntryMap
Table ID to Entry map type.
std::shared_ptr< HyperspaceTableCache > HyperspaceTableCachePtr
Smart pointer to HyperspaceTableCache.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
TableEntryMap m_map
Table ID to Entry map
bool maintenance_disabled
Flag indicating if "maintenance_disabled" attribute is set.