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

Function IsNested

cpp/src/arrow/type.h:2147–2151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2145 bool IsFieldPath() const { return std::holds_alternative<FieldPath>(impl_); }
2146 bool IsName() const { return std::holds_alternative<std::string>(impl_); }
2147 bool IsNested() const {
2148 if (IsName()) return false;
2149 if (IsFieldPath()) return std::get<FieldPath>(impl_).indices().size() > 1;
2150 return true;
2151 }
2152
2153 /// \brief Return true if this ref is a name or a nested sequence of only names
2154 ///

Callers

nothing calls this directly

Calls 4

IsNameFunction · 0.85
IsFieldPathFunction · 0.85
indicesMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected