MCPcopy Create free account
hub / github.com/ceph/ceph / dump

Method dump

src/common/bloom_filter.cc:55–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void bloom_filter::dump(Formatter *f) const
56{
57 f->dump_unsigned("salt_count", salt_count_);
58 f->dump_unsigned("table_size", table_size_);
59 f->dump_unsigned("insert_count", insert_count_);
60 f->dump_unsigned("target_element_count", target_element_count_);
61 f->dump_unsigned("random_seed", random_seed_);
62
63 f->open_array_section("salt_table");
64 for (std::vector<bloom_type>::const_iterator i = salt_.begin(); i != salt_.end(); ++i)
65 f->dump_unsigned("salt", *i);
66 f->close_section();
67
68 f->open_array_section("bit_table");
69 for (auto byte : bit_table_) {
70 f->dump_unsigned("byte", (unsigned)byte);
71 }
72 f->close_section();
73}
74
75std::list<bloom_filter> bloom_filter::generate_test_instances()
76{

Callers

nothing calls this directly

Calls 6

dumpFunction · 0.70
dump_unsignedMethod · 0.45
open_array_sectionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
close_sectionMethod · 0.45

Tested by

no test coverage detected