| 150 | } |
| 151 | |
| 152 | optional_ptr<const CompressionFunction> |
| 153 | CompressionFunctionSet::GetCompressionFunction(CompressionType type, const PhysicalType physical_type) { |
| 154 | const auto index = GetCompressionIndex(physical_type); |
| 155 | const auto &function_list = functions[index]; |
| 156 | for (auto &function : function_list) { |
| 157 | if (function.type == type) { |
| 158 | return &function; |
| 159 | } |
| 160 | } |
| 161 | return nullptr; |
| 162 | } |
| 163 | |
| 164 | void CompressionFunctionSet::SetDisabledCompressionMethods(const vector<CompressionType> &methods) { |
| 165 | ResetDisabledMethods(); |
no test coverage detected