| 2279 | /// Return nullptr if none match, emit an error if multiple match. |
| 2280 | template <typename T> |
| 2281 | Result<GetType<T>> GetOneOrNone(const T& root) const { |
| 2282 | ARROW_ASSIGN_OR_RAISE(auto match, FindOneOrNone(root)); |
| 2283 | if (match.empty()) { |
| 2284 | return static_cast<GetType<T>>(NULLPTR); |
| 2285 | } |
| 2286 | return match.Get(root).ValueOrDie(); |
| 2287 | } |
| 2288 | /// \brief Get the single child matching this FieldRef. |
| 2289 | /// |
| 2290 | /// Return nullptr if none match, emit an error if multiple match. |
nothing calls this directly
no test coverage detected