| 323 | } |
| 324 | |
| 325 | inline void HashTable::Iterator::SetMatched() { |
| 326 | DCHECK(!AtEnd()); |
| 327 | Bucket* bucket = &table_->buckets_[bucket_idx_]; |
| 328 | if (table_->stores_duplicates() && bucket->HasDuplicates()) { |
| 329 | node_->SetMatched(); |
| 330 | } else { |
| 331 | bucket->SetMatched(); |
| 332 | } |
| 333 | // Used for disabling spilling of hash tables in right and full-outer joins with |
| 334 | // matches. See IMPALA-1488. |
| 335 | table_->has_matches_ = true; |
| 336 | } |
| 337 | |
| 338 | inline bool HashTable::Iterator::IsMatched() const { |
| 339 | DCHECK(!AtEnd()); |
no test coverage detected