MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / cursorTreeToMap

Function cursorTreeToMap

src/Core/Streaming/CursorTree.cpp:156–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154///////////////////////////////////////////////////////////////////////////////////
155
156Map cursorTreeToMap(const CursorTreeNodePtr & ptr)
157{
158 chassert(ptr != nullptr);
159 std::map<String, Int64> collapsed_tree = collapseTree(ptr.get());
160 Map result;
161
162 for (const auto & [k, v] : collapsed_tree)
163 result.push_back(Tuple{k, v});
164
165 return result;
166}
167
168CursorTreeNodePtr buildCursorTree(const Map & collapsed_tree)
169{

Callers 4

operator==Function · 0.85
updateTreeHashMethod · 0.85
TESTFunction · 0.85

Calls 3

collapseTreeFunction · 0.85
getMethod · 0.45
push_backMethod · 0.45

Tested by 1

TESTFunction · 0.68