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

Function sortEntries

src/binder/bind/bind_graph_pattern.cpp:646–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646static std::vector<TableCatalogEntry*> sortEntries(const table_catalog_entry_set_t& set) {
647 std::vector<TableCatalogEntry*> entries;
648 for (auto entry : set) {
649 entries.push_back(entry);
650 }
651 std::sort(entries.begin(), entries.end(),
652 [](const TableCatalogEntry* a, const TableCatalogEntry* b) {
653 return a->getTableID() < b->getTableID();
654 });
655 return entries;
656}
657
658std::pair<std::vector<TableCatalogEntry*>, std::unordered_map<TableCatalogEntry*, std::string>>
659Binder::bindNodeTableEntries(const std::vector<std::string>& tableNames) const {

Callers 3

mergeBulkInsertsMethod · 0.85
bindNodeTableEntriesMethod · 0.85
bindRelGroupEntriesMethod · 0.85

Calls 3

push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected