| 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*). |
nothing calls this directly
no test coverage detected