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

Function PrintKeyValueMetadata

cpp/src/parquet/printer.cc:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void PrintKeyValueMetadata(std::ostream& stream,
68 const KeyValueMetadata& key_value_metadata,
69 int indent_level = 0, int indent_width = 1) {
70 const int64_t size_of_key_value_metadata = key_value_metadata.size();
71 PutChars(stream, ' ', indent_level * indent_width);
72 stream << "Key Value Metadata: " << size_of_key_value_metadata << " entries\n";
73 for (int64_t i = 0; i < size_of_key_value_metadata; i++) {
74 PutChars(stream, ' ', (indent_level + 1) * indent_width);
75 stream << "Key nr " << i << " " << key_value_metadata.key(i) << ": "
76 << key_value_metadata.value(i) << "\n";
77 }
78}
79
80// the fixed initial size is just for an example
81constexpr int kColWidth = 30;

Callers 1

DebugPrintMethod · 0.85

Calls 4

PutCharsFunction · 0.85
sizeMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected