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