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

Function NextValid

cpp/src/arrow/dataset/partition.cc:307–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307inline std::optional<int> NextValid(const ScalarVector& values, int first_null) {
308 auto it = std::find_if(values.begin() + first_null + 1, values.end(),
309 [](const std::shared_ptr<Scalar>& v) { return v != nullptr; });
310
311 if (it == values.end()) {
312 return std::nullopt;
313 }
314
315 return static_cast<int>(it - values.begin());
316}
317
318Result<std::vector<std::string>> KeyValuePartitioning::FormatPartitionSegments(
319 const ScalarVector& values) const {

Callers 1

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected