| 492 | } |
| 493 | |
| 494 | RelTableData* RelTable::getDirectedTableData(RelDataDirection direction) const { |
| 495 | const auto directionIdx = RelDirectionUtils::relDirectionToKeyIdx(direction); |
| 496 | if (directionIdx >= directedRelData.size()) { |
| 497 | throw RuntimeException(std::format( |
| 498 | "Failed to get {} data for rel table \"{}\", please set the storage direction to BOTH", |
| 499 | RelDirectionUtils::relDirectionToString(direction), tableName)); |
| 500 | } |
| 501 | DASSERT(directedRelData[directionIdx]->getDirection() == direction); |
| 502 | return directedRelData[directionIdx].get(); |
| 503 | } |
| 504 | |
| 505 | NodeGroup* RelTable::getOrCreateNodeGroup(const Transaction* transaction, |
| 506 | node_group_idx_t nodeGroupIdx, RelDataDirection direction) const { |
no test coverage detected