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

Method CompareEntry

cpp/src/arrow/util/hashing.h:338–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336
337 template <CompareKind CKind, typename CmpFunc>
338 bool CompareEntry(hash_t h, const Entry* entry, CmpFunc&& cmp_func) const {
339 if (CKind == NoCompare) {
340 return false;
341 } else {
342 return entry->h == h && cmp_func(&entry->payload);
343 }
344 }
345
346 bool NeedUpsizing() const {
347 // Keep the load factor <= 1/2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected