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

Function PrintKeyValueMetadata

cpp/src/parquet/printer.cc:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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