12#include "common/lang/unordered_map.h"
13#include "common/lang/mutex.h"
14#include "catalog/table_stats.h"
Store metadata, such as table statistics.
Definition: catalog.h:25
void update_table_stats(int table_id, const TableStats &table_stats)
Updates table statistics for a given table.
Definition: catalog.cpp:19
static Catalog & get_instance()
Gets the singleton instance of the Catalog.
Definition: catalog.h:59
const TableStats & get_table_stats(int table_id)
Retrieves table statistics for a given table_id.
Definition: catalog.cpp:13
unordered_map< int, TableStats > table_stats_
A map storing the table statistics indexed by table_id.
Definition: catalog.h:73
Represents statistics related to a table.
Definition: table_stats.h:22