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

Function UnorderedMapKeys

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

Source from the content-addressed store, hash-verified

37namespace arrow {
38
39static std::vector<std::string> UnorderedMapKeys(
40 const std::unordered_map<std::string, std::string>& map) {
41 std::vector<std::string> keys;
42 keys.reserve(map.size());
43 for (const auto& pair : map) {
44 keys.push_back(pair.first);
45 }
46 return keys;
47}
48
49static std::vector<std::string> UnorderedMapValues(
50 const std::unordered_map<std::string, std::string>& map) {

Callers 1

KeyValueMetadataMethod · 0.85

Calls 3

push_backMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected