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

Method planNodeIDScan

src/planner/plan/plan_join_order.cpp:286–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void Planner::planNodeIDScan(uint32_t nodePos) {
287 auto node = context.queryGraph->getQueryNode(nodePos);
288 auto newSubgraph = context.getEmptySubqueryGraph();
289 newSubgraph.addQueryNode(nodePos);
290 auto plan = LogicalPlan();
291 appendScanNodeTable(node->getInternalID(), node->getTableIDs(), {}, plan);
292 context.addPlan(newSubgraph, std::move(plan));
293}
294
295static std::pair<std::shared_ptr<NodeExpression>, std::shared_ptr<NodeExpression>>
296getBoundAndNbrNodes(const RelExpression& rel, ExtendDirection direction) {

Callers

nothing calls this directly

Calls 6

getQueryNodeMethod · 0.80
getEmptySubqueryGraphMethod · 0.80
LogicalPlanClass · 0.50
addQueryNodeMethod · 0.45
getTableIDsMethod · 0.45
addPlanMethod · 0.45

Tested by

no test coverage detected