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

Method Find

cpp/src/arrow/engine/substrait/extension_set.cc:94–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 std::optional<Id> Find(Id id) const override {
95 std::optional<std::string_view> maybe_owned_uri = FindUri(id.uri);
96 if (!maybe_owned_uri) {
97 return std::nullopt;
98 }
99
100 auto name_itr = names_.find(id.name);
101 if (name_itr == names_.end()) {
102 return std::nullopt;
103 } else {
104 return Id{*maybe_owned_uri, *name_itr};
105 }
106 }
107
108 std::optional<std::string_view> FindUri(std::string_view uri) const override {
109 auto uri_itr = uris_.find(uri);

Callers 1

FindIdMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected