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

Method IsAncestorOf

cpp/src/arrow/dataset/forest_internal.h:76–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 int num_descendants() const { return forest->descendant_counts_->at(i); }
75
76 bool IsAncestorOf(const Ref& ref) const {
77 return i < ref.i && i + 1 + num_descendants() > ref.i;
78 }
79
80 explicit operator bool() const { return forest != NULLPTR; }
81

Callers 1

VisitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected