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

Function GetOneOrNoneFlattened

cpp/src/arrow/type.h:2294–2301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2292 /// retrieved child's null bitmap is ANDed with its ancestors'
2293 template <typename T>
2294 Result<GetType<T>> GetOneOrNoneFlattened(const T& root,
2295 MemoryPool* pool = NULLPTR) const {
2296 ARROW_ASSIGN_OR_RAISE(auto match, FindOneOrNone(root));
2297 if (match.empty()) {
2298 return static_cast<GetType<T>>(NULLPTR);
2299 }
2300 return match.GetFlattened(root, pool);
2301 }
2302
2303 private:
2304 void Flatten(std::vector<FieldRef> children);

Callers

nothing calls this directly

Calls 2

GetFlattenedMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected