MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getStats

Method getStats

src/storage/table/node_table.cpp:772–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772TableStats NodeTable::getStats(const Transaction* transaction) const {
773 auto stats = nodeGroups->getStats();
774 if (const auto localTable = transaction->getLocalStorage()->getLocalTable(tableID)) {
775 const auto localStats = localTable->cast<LocalNodeTable>().getStats();
776 stats.merge(localStats);
777 }
778 return stats;
779}
780
781bool NodeTable::isVisible(const Transaction* transaction, offset_t offset) const {
782 if (transaction && transaction->isUnCommitted(tableID, offset)) {

Callers 3

internalTableFuncFunction · 0.45
appendMethod · 0.45
buildPlannerTableStatsFunction · 0.45

Calls 2

getLocalTableMethod · 0.80
mergeMethod · 0.45

Tested by

no test coverage detected