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

Method HashTable

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

Source from the content-addressed store, hash-verified

242 };
243
244 HashTable(MemoryPool* pool, uint64_t capacity) : entries_builder_(pool) {
245 ARROW_DCHECK_NE(pool, nullptr);
246 // Minimum of 32 elements
247 capacity = std::max<uint64_t>(capacity, 32UL);
248 capacity_ = bit_util::NextPower2(capacity);
249 capacity_mask_ = capacity_ - 1;
250 size_ = 0;
251
252 ARROW_DCHECK_OK(UpsizeBuffer(capacity_));
253 }
254
255 // Lookup with non-linear probing
256 // cmp_func should have signature bool(const Payload*).

Callers

nothing calls this directly

Calls 1

NextPower2Function · 0.85

Tested by

no test coverage detected