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

Method Set

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

Source from the content-addressed store, hash-verified

145}
146
147Status KeyValueMetadata::Set(std::string key, std::string value) {
148 auto index = FindKey(key);
149 if (index < 0) {
150 Append(std::move(key), std::move(value));
151 } else {
152 keys_[index] = std::move(key);
153 values_[index] = std::move(value);
154 }
155 return Status::OK();
156}
157
158bool KeyValueMetadata::Contains(std::string_view key) const { return FindKey(key) >= 0; }
159

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