MCPcopy Create free account
hub / github.com/apache/impala / NextFilledBucket

Method NextFilledBucket

be/src/exec/hash-table.inline.h:204–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204inline void HashTable::NextFilledBucket(int64_t* bucket_idx, DuplicateNode** node) {
205 ++*bucket_idx;
206 for (; *bucket_idx < num_buckets_; ++*bucket_idx) {
207 if (buckets_[*bucket_idx].IsFilled()) {
208 *node = stores_duplicates() ? buckets_[*bucket_idx].GetDuplicate() : NULL;
209 return;
210 }
211 }
212 // Reached the end of the hash table.
213 *bucket_idx = Iterator::BUCKET_NOT_FOUND;
214 *node = NULL;
215}
216
217inline void HashTable::PrepareBucketForInsert(int64_t bucket_idx, uint32_t hash) {
218 DCHECK_GE(bucket_idx, 0);

Callers 2

NextMethod · 0.80
NextUnmatchedMethod · 0.80

Calls 2

IsFilledMethod · 0.45
GetDuplicateMethod · 0.45

Tested by

no test coverage detected