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

Function isRelTableQualifies

src/processor/map/map_extend.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static bool isRelTableQualifies(ExtendDirection direction, table_id_t srcTableID,
68 table_id_t dstTableID, table_id_t boundNodeTableID, const table_id_set_t& nbrTableISet) {
69 switch (direction) {
70 case ExtendDirection::FWD: {
71 return srcTableID == boundNodeTableID && nbrTableISet.contains(dstTableID);
72 }
73 case ExtendDirection::BWD: {
74 return dstTableID == boundNodeTableID && nbrTableISet.contains(srcTableID);
75 }
76 default:
77 UNREACHABLE_CODE;
78 }
79}
80
81static std::vector<ScanRelTableInfo> populateRelTableCollectionScanner(table_id_t boundNodeTableID,
82 const table_id_set_t& nbrTableISet, const RelGroupCatalogEntry& entry,

Callers 1

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected