MCPcopy Create free account
hub / github.com/ByConity/ByConity / queryRowCount

Method queryRowCount

src/Statistics/CatalogAdaptor.cpp:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127std::optional<UInt64> CatalogAdaptor::queryRowCount(const StatsTableIdentifier & table_id)
128{
129 auto storage = getStorageByTableId(table_id);
130 const auto * cnch_merge_tree = dynamic_cast<const StorageCnchMergeTree *>(storage.get());
131 if (!cnch_merge_tree)
132 return std::nullopt;
133 return cnch_merge_tree->totalRows(context);
134}
135
136ColumnDescVector CatalogAdaptor::getAllCollectableColumns(const StatsTableIdentifier & identifier)
137{

Callers 1

collectTableMethod · 0.80

Calls 2

getMethod · 0.45
totalRowsMethod · 0.45

Tested by

no test coverage detected