MCPcopy Create free account
hub / github.com/duckdb/duckdb / GetCompressionFunction

Method GetCompressionFunction

src/function/compression_config.cpp:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152optional_ptr<const CompressionFunction>
153CompressionFunctionSet::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
164void CompressionFunctionSet::SetDisabledCompressionMethods(const vector<CompressionType> &methods) {
165 ResetDisabledMethods();

Callers 15

FlushSegmentInternalMethod · 0.45
InitializeAppendMethod · 0.45
AppendSegmentMethod · 0.45
GetColumnSegmentInfoMethod · 0.45
FilterMethod · 0.45
SelectMethod · 0.45
ConvertToPersistentMethod · 0.45
WriteToDiskMethod · 0.45

Calls 1

InternalExceptionClass · 0.85

Tested by

no test coverage detected