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

Method DebugString

be/src/exec/hash-table.cc:666–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666string HashTable::DebugString(bool skip_empty, bool show_match,
667 const RowDescriptor* desc) {
668 stringstream ss;
669 ss << endl;
670 for (int i = 0; i < num_buckets_; ++i) {
671 if (skip_empty && !buckets_[i].IsFilled()) continue;
672 ss << i << ": ";
673 if (show_match) {
674 if (buckets_[i].IsMatched()) {
675 ss << " [M]";
676 } else {
677 ss << " [U]";
678 }
679 }
680 if (buckets_[i].HasDuplicates()) {
681 DuplicateNode* node = buckets_[i].GetDuplicate();
682 bool first = true;
683 ss << " [D] ";
684 while (node != NULL) {
685 if (!first) ss << ",";
686 DebugStringTuple(ss, node->htdata, desc);
687 node = node->Next();
688 first = false;
689 }
690 } else {
691 ss << " [B] ";
692 if (buckets_[i].IsFilled()) {
693 HtData htdata = buckets_[i].GetBucketData().htdata;
694 DebugStringTuple(ss, htdata, desc);
695 } else {
696 ss << " - ";
697 }
698 }
699 ss << endl;
700 }
701 return ss.str();
702}
703
704string HashTable::PrintStats() const {
705 double curr_fill_factor =

Callers

nothing calls this directly

Calls 6

IsFilledMethod · 0.45
IsMatchedMethod · 0.45
HasDuplicatesMethod · 0.45
GetDuplicateMethod · 0.45
NextMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected