| 301 | } |
| 302 | |
| 303 | static 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 | |
| 316 | void Planner::planRelScan(uint32_t relPos, const QueryGraphPlanningInfo& info) { |
| 317 | const auto rel = context.queryGraph->getQueryRel(relPos); |
no test coverage detected