27 #ifndef Hypertable_RangeServer_TableInfoMap_h
28 #define Hypertable_RangeServer_TableInfoMap_h
134 void get_all(std::vector<TableInfoPtr> &tv);
210 typedef std::map<String, TableInfoPtr>
InfoMap;
228 #endif // Hypertable_RangeServer_TableInfoMap_h
std::set< String > StringSet
STL Set managing Strings.
InfoMap m_map
table_id-to-TableInfoPtr map
std::string String
A String is simply a typedef to std::string.
HyperspaceTableCachePtr m_schema_cache
Hyperspace table cache
std::mutex m_mutex
Mutex for serializing access to members
void promote_staged_range(const TableIdentifier &table, RangePtr &range, const char *transfer_log)
Adds a staged range.
void merge_unlocked(TableInfoMap *other)
Merges in another map (without locking mutex).
void get_ranges(Ranges &ranges, StringSet *remove_ok_logs=0)
Gets set of live RangeData objects and corresponding transfer logs that can be safely removed...
std::map< String, TableInfoPtr > InfoMap
table_id-to-TableInfoPtr map type
void merge(TableInfoMap *other)
Merges in another map.
virtual ~TableInfoMap()
Destructor.
Declarations for HyperspaceTableCache.
std::shared_ptr< TableInfoMap > TableInfoMapPtr
Shared smart pointer to TableInfoMap.
Declarations for TableInfo.
bool empty()
Determines if map is empty.
TableInfoMap(HyperspaceTableCachePtr schema_cache)
Constructor with HyperspaceTableCache.
std::shared_ptr< TableInfo > TableInfoPtr
Smart pointer to TableInfo.
std::shared_ptr< Range > RangePtr
Smart pointer to Range.
bool lookup(const String &table_id, TableInfoPtr &info)
Returns the TableInfo object for a given table.
std::shared_ptr< HyperspaceTableCache > HyperspaceTableCachePtr
Smart pointer to HyperspaceTableCache.
void clear()
Clears the map.
void get_all(std::vector< TableInfoPtr > &tv)
Gets all TableInfo objects in map.
TableInfoMap()
Constructor.
String extensions and helpers: sets, maps, append operators etc.
Manages live range map and set of log names that can be safely removed.
Holds vector of RangeData objects and memory arena.