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

Class ByGuarantee

cpp/src/arrow/dataset/subtree_internal.h:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143 // Comparator for sort
144 struct ByGuarantee {
145 bool operator()(const Encoded& l, const Encoded& r) {
146 const auto cmp = l.guarantee.compare(r.guarantee);
147 if (cmp != 0) {
148 return cmp < 0;
149 }
150 // Equal guarantees; sort encodings with indices after encodings without
151 return (l.index ? 1 : 0) < (r.index ? 1 : 0);
152 }
153 };
154
155 // Comparator for building a Forest
156 struct IsAncestor {

Callers 1

SetupSubtreePruningMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected