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

Function initSourceNodeScanState

src/processor/operator/scan/scan_rel_table.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static void initSourceNodeScanState(ScanNodeTableInfo& sourceInfo,
140 std::unique_ptr<TableScanState>& sourceScanState, ValueVector* boundNodeIDVector,
141 const std::vector<ValueVector*>& sourceNodeOutVectors, main::ClientContext* context) {
142 sourceScanState = createSourceNodeTableScanState(sourceInfo.table->ptrCast<NodeTable>(),
143 boundNodeIDVector, sourceNodeOutVectors, MemoryManager::Get(*context));
144 sourceInfo.initScanState(*sourceScanState, sourceNodeOutVectors, context);
145 if (dynamic_cast<IceDiskNodeTable*>(sourceInfo.table) ||
146 dynamic_cast<ArrowNodeTable*>(sourceInfo.table)) {
147 sourceInfo.table->initScanState(transaction::Transaction::Get(*context), *sourceScanState);
148 }
149}
150
151bool ScanRelTable::fetchNextBoundNodeBatch(transaction::Transaction* transaction) {
152 if (sourceNodeScanMode) {

Callers 1

Calls 2

initScanStateMethod · 0.45

Tested by

no test coverage detected