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

Method FindKey

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

Source from the content-addressed store, hash-verified

187}
188
189int KeyValueMetadata::FindKey(std::string_view key) const {
190 for (size_t i = 0; i < keys_.size(); ++i) {
191 if (keys_[i] == key) {
192 return static_cast<int>(i);
193 }
194 }
195 return -1;
196}
197
198std::shared_ptr<KeyValueMetadata> KeyValueMetadata::Copy() const {
199 return std::make_shared<KeyValueMetadata>(keys_, values_);

Callers 8

ARROW_ASSIGN_OR_RAISEFunction · 0.80
FromTagMethod · 0.80
FieldFromFlatbufferFunction · 0.80
GetMetadataFunction · 0.80
TESTFunction · 0.80
FieldIdFromMetadataFunction · 0.80
GetOriginSchemaFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64