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

Method resize

src/Dictionaries/HashedArrayDictionary.cpp:621–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619
620template <DictionaryKeyType dictionary_key_type, bool sharded>
621void HashedArrayDictionary<dictionary_key_type, sharded>::resize(size_t total_rows)
622{
623 if (unlikely(!total_rows))
624 return;
625
626 /// In multi shards configuration it is pointless.
627 if constexpr (sharded)
628 return;
629
630 for (auto & container : key_attribute.containers)
631 container.reserve(total_rows);
632}
633
634template <DictionaryKeyType dictionary_key_type, bool sharded>
635template <typename KeysProvider>

Callers 3

getColumnsMethod · 0.45
createAttributesMethod · 0.45

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected