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

Method LocalRelTable

src/storage/local_storage/local_rel_table.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28LocalRelTable::LocalRelTable(const catalog::TableCatalogEntry* tableEntry, const Table& table,
29 MemoryManager& mm)
30 : LocalTable{table} {
31 localNodeGroup = std::make_unique<NodeGroup>(mm, 0, false,
32 getTypesForLocalRelTable(*tableEntry), INVALID_ROW_IDX);
33 const auto& relTable = table.cast<RelTable>();
34 for (auto relDirection : relTable.getStorageDirections()) {
35 directedIndices.emplace_back(relDirection);
36 }
37}
38
39bool LocalRelTable::insert(Transaction*, TableInsertState& state) {
40 const auto& insertState = state.cast<RelTableInsertState>();

Callers

nothing calls this directly

Calls 3

getTypesForLocalRelTableFunction · 0.85
getStorageDirectionsMethod · 0.80
emplace_backMethod · 0.80

Tested by

no test coverage detected