| 2249 | /// children's null bitmaps are ANDed with their ancestors' |
| 2250 | template <typename T> |
| 2251 | Result<std::vector<GetType<T>>> GetAllFlattened(const T& root, |
| 2252 | MemoryPool* pool = NULLPTR) const { |
| 2253 | std::vector<GetType<T>> out; |
| 2254 | for (const auto& match : FindAll(root)) { |
| 2255 | ARROW_ASSIGN_OR_RAISE(auto child, match.GetFlattened(root, pool)); |
| 2256 | out.push_back(std::move(child)); |
| 2257 | } |
| 2258 | return out; |
| 2259 | } |
| 2260 | |
| 2261 | /// \brief Get the single child matching this FieldRef. |
| 2262 | /// Emit an error if none or multiple match. |