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

Method init

src/function/gds/bfs_graph.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46void DenseBFSGraph::init(ExecutionContext* context, Graph* graph) {
47 auto mm = storage::MemoryManager::Get(*context->clientContext);
48 for (auto& [tableID, maxOffset] : maxOffsetMap) {
49 denseObjects.allocate(tableID, maxOffset, mm);
50 }
51 auto vc = std::make_unique<BFSGraphInitVertexCompute>(*this);
52 GDSUtils::runVertexCompute(context, GDSDensityState::DENSE, graph, *vc);
53}
54
55void DenseBFSGraph::pinTableID(table_id_t tableID) {
56 curData = denseObjects.getData(tableID);

Callers 7

getFrontierTaskFunction · 0.45
runVertexComputeInternalFunction · 0.45
getNodeMaskPlanRootsFunction · 0.45
getLogicalPlanMethod · 0.45
switchToDenseMethod · 0.45

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected