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

Method getNumTotalRows

src/storage/table/node_table.cpp:286–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286row_idx_t NodeTable::getNumTotalRows(const Transaction* transaction) {
287 auto numLocalRows = 0u;
288 if (transaction && transaction->getLocalStorage()) {
289 if (const auto localTable = transaction->getLocalStorage()->getLocalTable(tableID)) {
290 numLocalRows = localTable->getNumTotalRows();
291 }
292 }
293 return numLocalRows + nodeGroups->getNumTotalRows();
294}
295
296void NodeTable::initScanState(Transaction* transaction, TableScanState& scanState, bool) const {
297 auto& nodeScanState = scanState.cast<NodeTableScanState>();

Callers 1

commitMethod · 0.45

Calls 1

getLocalTableMethod · 0.80

Tested by

no test coverage detected