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

Method getDirectedTableData

src/storage/table/rel_table.cpp:494–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494RelTableData* 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
505NodeGroup* RelTable::getOrCreateNodeGroup(const Transaction* transaction,
506 node_group_idx_t nodeGroupIdx, RelDataDirection direction) const {

Callers 3

tableFuncFunction · 0.80
collectDiskSizeInfoFunction · 0.80
getNextTuplesInternalMethod · 0.80

Calls 3

sizeMethod · 0.45
getDirectionMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected