| 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 |
nothing calls this directly
no test coverage detected