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

Function FindOne

cpp/src/arrow/type.h:2214–2219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2212 /// FieldRef. Emit an error if none or multiple match.
2213 template <typename T>
2214 Result<FieldPath> FindOne(const T& root) const {
2215 auto matches = FindAll(root);
2216 ARROW_RETURN_NOT_OK(CheckNonEmpty(matches, root));
2217 ARROW_RETURN_NOT_OK(CheckNonMultiple(matches, root));
2218 return std::move(matches[0]);
2219 }
2220
2221 /// \brief Retrieve FieldPath of a single child field which matches this
2222 /// FieldRef. Emit an error if multiple match. An empty (invalid) FieldPath

Callers

nothing calls this directly

Calls 2

CheckNonEmptyFunction · 0.85
CheckNonMultipleFunction · 0.85

Tested by

no test coverage detected