| 619 | |
| 620 | template <DictionaryKeyType dictionary_key_type, bool sharded> |
| 621 | void 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 | |
| 634 | template <DictionaryKeyType dictionary_key_type, bool sharded> |
| 635 | template <typename KeysProvider> |
no test coverage detected