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

Method DebugString

be/src/util/bitmap.cc:26–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using namespace impala;
25
26string Bitmap::DebugString(bool print_bits) const {
27 int64_t words = BitUtil::RoundUp(num_bits_, 64) / 64;
28 stringstream ss;
29 ss << "Size (" << num_bits_ << ") words (" << words << ") ";
30 if (print_bits) {
31 for (int i = 0; i < num_bits(); ++i) {
32 if (Get(i)) {
33 ss << "1";
34 } else {
35 ss << "0";
36 }
37 }
38 } else {
39 for (auto v : buffer_) {
40 ss << v << ".";
41 }
42 }
43 ss << endl;
44 return ss.str();
45}

Callers 10

GetUnloweredTypeMethod · 0.45
SetIsNullMethod · 0.45
EqMethod · 0.45
EqToNativePtrMethod · 0.45
AppendAnyValTypeFunction · 0.45
PrintPathFunction · 0.45
VerifyItemsFunction · 0.45
TESTFunction · 0.45
RootHandlerFunction · 0.45

Calls 1

strMethod · 0.45

Tested by 2

VerifyItemsFunction · 0.36
TESTFunction · 0.36