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

Method executeInternal

src/processor/operator/simple/analyze.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace processor {
14
15void Analyze::executeInternal(ExecutionContext* context) {
16 auto* clientContext = context->clientContext;
17 auto* storageManager = storage::StorageManager::Get(*clientContext);
18 auto* catalog = catalog::Catalog::Get(*clientContext);
19 auto* transaction = transaction::Transaction::Get(*clientContext);
20 const auto analyzedTables =
21 storage::analyzePlannerStats(*storageManager, *catalog, transaction, tableName);
22 appendMessage(std::format("Analyzed {} table{}.", analyzedTables.size(),
23 analyzedTables.size() == 1 ? "" : "s"),
24 storage::MemoryManager::Get(*clientContext));
25}
26
27std::string AnalyzePrintInfo::toString() const {
28 std::string result = "Table: ";

Callers

nothing calls this directly

Calls 2

analyzePlannerStatsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected