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

Method Set

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

Source from the content-addressed store, hash-verified

139}
140
141Status KeyValueMetadata::Set(std::string key, std::string value) {
142 auto index = FindKey(key);
143 if (index < 0) {
144 Append(std::move(key), std::move(value));
145 } else {
146 keys_[index] = std::move(key);
147 values_[index] = std::move(value);
148 }
149 return Status::OK();
150}
151
152bool KeyValueMetadata::Contains(std::string_view key) const { return FindKey(key) >= 0; }
153

Callers 6

WriteVectorToWriterFunction · 0.45
TESTFunction · 0.45
DefRepLevelsToListInfoFunction · 0.45
CheckRoundtripMethod · 0.45
MakeSimpleArrayFunction · 0.45

Calls 2

AppendFunction · 0.70
OKFunction · 0.50

Tested by 3

WriteVectorToWriterFunction · 0.36
TESTFunction · 0.36
CheckRoundtripMethod · 0.36