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

Function getExtendDirection

src/planner/plan/plan_join_order.cpp:303–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303static ExtendDirection getExtendDirection(const binder::RelExpression& relExpression,
304 const binder::NodeExpression& boundNode) {
305 if (relExpression.getDirectionType() == binder::RelDirectionType::BOTH) {
306 DASSERT(relExpression.getExtendDirections().size() == common::NUM_REL_DIRECTIONS);
307 return ExtendDirection::BOTH;
308 }
309 if (relExpression.getSrcNodeName() == boundNode.getUniqueName()) {
310 return ExtendDirection::FWD;
311 } else {
312 return ExtendDirection::BWD;
313 }
314}
315
316void Planner::planRelScan(uint32_t relPos, const QueryGraphPlanningInfo& info) {
317 const auto rel = context.queryGraph->getQueryRel(relPos);

Callers 4

planRelScanMethod · 0.70
planWCOJoinMethod · 0.70
tryPlanPackedINLJoinMethod · 0.70
tryPlanINLJoinMethod · 0.70

Calls 3

getExtendDirectionsMethod · 0.80
sizeMethod · 0.45
getUniqueNameMethod · 0.45

Tested by

no test coverage detected