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

Function CheckNonEmpty

cpp/src/arrow/type.h:2194–2199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2192 /// \brief Convenience function: raise an error if matches is empty.
2193 template <typename T>
2194 Status CheckNonEmpty(const std::vector<FieldPath>& matches, const T& root) const {
2195 if (matches.empty()) {
2196 return Status::Invalid("No match for ", ToString(), " in ", root.ToString());
2197 }
2198 return Status::OK();
2199 }
2200
2201 /// \brief Convenience function: raise an error if matches contains multiple FieldPaths.
2202 template <typename T>

Callers 1

FindOneFunction · 0.85

Calls 5

InvalidFunction · 0.70
ToStringFunction · 0.70
OKFunction · 0.70
emptyMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected