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

Method toString

src/planner/join_order/join_tree.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace planner {
5
6std::string TreeNodeTypeUtils::toString(TreeNodeType type) {
7 switch (type) {
8 case TreeNodeType::NODE_SCAN:
9 return "NODE_SCAN";
10 case TreeNodeType::REL_SCAN:
11 return "REL_SCAN";
12 case TreeNodeType::BINARY_JOIN:
13 return "BINARY_JOIN";
14 case TreeNodeType::MULTIWAY_JOIN:
15 return "MULTIWAY_JOIN";
16 default:
17 UNREACHABLE_CODE;
18 }
19}
20
21void ExtraScanTreeNodeInfo::merge(const ExtraScanTreeNodeInfo& other) {
22 DASSERT(other.nodeInfo == nullptr && other.relInfos.size() == 1);

Callers 2

planCopyToMethod · 0.45
constructTreeNodeMethod · 0.45

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected