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

Method initCurrentTable

src/processor/operator/scan/scan_node_table.cpp:146–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void ScanNodeTable::initCurrentTable(ExecutionContext* context) {
147 auto& currentInfo = tableInfos[currentTableIdx];
148 scanState = createNodeTableScanState(currentInfo.table->ptrCast<NodeTable>(), nodeIDVector,
149 outVectors, MemoryManager::Get(*context->clientContext));
150 currentInfo.initScanState(*scanState, outVectors, context->clientContext);
151 scanState->semiMask = sharedStates[currentTableIdx]->getSemiMask();
152 // Call table->initScanState for IceDiskNodeTable or ArrowNodeTable
153 if (dynamic_cast<IceDiskNodeTable*>(tableInfos[currentTableIdx].table) ||
154 dynamic_cast<ArrowNodeTable*>(tableInfos[currentTableIdx].table)) {
155 auto transaction = transaction::Transaction::Get(*context->clientContext);
156 tableInfos[currentTableIdx].table->initScanState(transaction, *scanState);
157 }
158}
159
160void ScanNodeTable::initGlobalStateInternal(ExecutionContext* context) {
161 DASSERT(sharedStates.size() == tableInfos.size());

Callers

nothing calls this directly

Calls 3

createNodeTableScanStateFunction · 0.85
getSemiMaskMethod · 0.80
initScanStateMethod · 0.45

Tested by

no test coverage detected