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

Method CopyColumnSpecificProperties

cpp/src/parquet/properties.cc:70–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void WriterProperties::Builder::CopyColumnSpecificProperties(
71 const WriterProperties& properties) {
72 for (const auto& [col_path, col_props] : properties.column_properties_) {
73 if (col_props.statistics_enabled() !=
74 default_column_properties_.statistics_enabled()) {
75 if (col_props.statistics_enabled()) {
76 this->enable_statistics(col_path);
77 } else {
78 this->disable_statistics(col_path);
79 }
80 }
81
82 if (col_props.dictionary_enabled() !=
83 default_column_properties_.dictionary_enabled()) {
84 if (col_props.dictionary_enabled()) {
85 this->enable_dictionary(col_path);
86 } else {
87 this->disable_dictionary(col_path);
88 }
89 }
90
91 if (col_props.page_index_enabled() !=
92 default_column_properties_.page_index_enabled()) {
93 if (col_props.page_index_enabled()) {
94 this->enable_write_page_index(col_path);
95 } else {
96 this->disable_write_page_index(col_path);
97 }
98 }
99
100 if (col_props.compression() != default_column_properties_.compression()) {
101 this->compression(col_path, col_props.compression());
102 }
103
104 if (col_props.compression_level() != default_column_properties_.compression_level()) {
105 this->compression_level(col_path, col_props.compression_level());
106 }
107
108 if (col_props.encoding() != default_column_properties_.encoding()) {
109 this->encoding(col_path, col_props.encoding());
110 }
111
112 if (col_props.bloom_filter_options().has_value()) {
113 this->enable_bloom_filter(col_path, col_props.bloom_filter_options().value());
114 }
115 }
116}
117
118} // namespace parquet

Callers

nothing calls this directly

Calls 4

compressionMethod · 0.45
compression_levelMethod · 0.45
encodingMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected