MCPcopy Create free account
hub / github.com/apache/arrow / PrintPageEncodingStats

Function PrintPageEncodingStats

cpp/src/parquet/printer.cc:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44namespace {
45
46void PrintPageEncodingStats(std::ostream& stream,
47 const std::vector<PageEncodingStats>& encoding_stats) {
48 for (size_t i = 0; i < encoding_stats.size(); ++i) {
49 const auto& encoding = encoding_stats.at(i);
50 stream << EncodingToString(encoding.encoding);
51 if (encoding.page_type == parquet::PageType::DICTIONARY_PAGE) {
52 // Explicitly tell if this encoding comes from a dictionary page
53 stream << "(DICT_PAGE)";
54 }
55 if (i + 1 != encoding_stats.size()) {
56 stream << " ";
57 }
58 }
59}
60
61void PutChars(std::ostream& stream, char c, int n) {
62 for (int i = 0; i < n; ++i) {

Callers 2

DebugPrintMethod · 0.85
JSONPrintMethod · 0.85

Calls 2

EncodingToStringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected