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

Method GetTuple

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

Source from the content-addressed store, hash-verified

303
304template <HashTable::BucketType TYPE>
305inline Tuple* IR_ALWAYS_INLINE HashTable::Iterator::GetTuple() const {
306 DCHECK(!AtEnd());
307 DCHECK(table_->stores_tuples());
308 Bucket* bucket = &table_->buckets_[bucket_idx_];
309 // TODO: To avoid the has_duplicates check, store the HtData* in the Iterator.
310 if (UNLIKELY(table_->stores_duplicates() && bucket->HasDuplicates())) {
311 DCHECK(node_ != NULL);
312 return node_->htdata.tuple;
313 } else {
314 return bucket->GetTuple<TYPE>();
315 }
316}
317
318inline void HashTable::Iterator::SetTuple(Tuple* tuple, uint32_t hash) {
319 DCHECK(!AtEnd());

Callers 15

TupleRowTupleIsNullFunction · 0.45
GetDateValInterpretedMethod · 0.45
ComputeNonNullCountMethod · 0.45
GetIntValInterpretedMethod · 0.45
UpdateTupleMethod · 0.45
AddRowMethod · 0.45

Calls 3

stores_tuplesMethod · 0.80
stores_duplicatesMethod · 0.80
HasDuplicatesMethod · 0.45

Tested by 4

FullScanMethod · 0.36
ProbeTestMethod · 0.36
InsertFullTestMethod · 0.36
ValidateMatchMethod · 0.36