MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getCompressionLevelRange

Function getCompressionLevelRange

src/IO/CompressionMethod.cpp:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122std::pair<uint64_t, uint64_t> getCompressionLevelRange(const CompressionMethod & method)
123{
124 switch (method)
125 {
126 case CompressionMethod::Zstd:
127 return {1, 22};
128 case CompressionMethod::Lz4:
129 return {1, 12};
130 default:
131 return {1, 9};
132 }
133}
134
135static std::unique_ptr<CompressedReadBufferWrapper> createCompressedWrapper(
136 std::unique_ptr<ReadBuffer> nested, CompressionMethod method, size_t buf_size, char * existing_memory, size_t alignment, int zstd_window_log_max)

Callers 1

processOrdinaryQueryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected