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

Function PrintPageEncodingStats

cpp/src/parquet/printer.cc:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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