MCPcopy Create free account
hub / github.com/apache/arrow / ToUnorderedMap

Method ToUnorderedMap

cpp/src/arrow/util/key_value_metadata.cc:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void KeyValueMetadata::ToUnorderedMap(
79 std::unordered_map<std::string, std::string>* out) const {
80 DCHECK_NE(out, nullptr);
81 const int64_t n = size();
82 out->reserve(n);
83 for (int64_t i = 0; i < n; ++i) {
84 out->insert(std::make_pair(key(i), value(i)));
85 }
86}
87
88void KeyValueMetadata::Append(std::string key, std::string value) {
89 keys_.push_back(std::move(key));

Callers 1

TESTFunction · 0.80

Calls 5

keyFunction · 0.85
valueFunction · 0.70
sizeFunction · 0.50
reserveMethod · 0.45
insertMethod · 0.45

Tested by 1

TESTFunction · 0.64