ClickHouse/dbms/src/IO/CompressionSettings.h

39 lines
625 B
C++
Raw Normal View History

#pragma once
#include <IO/CompressedStream.h>
namespace DB
{
2017-10-13 01:11:13 +00:00
struct Settings;
struct CompressionSettings
{
CompressionMethod method;
int level;
CompressionSettings()
: CompressionSettings(CompressionMethod::LZ4)
{
}
CompressionSettings(CompressionMethod method_)
: method(method_)
, level(getDefaultLevel(method))
{
}
CompressionSettings(CompressionMethod method_, int level_)
: method(method_)
, level(level_)
{
}
CompressionSettings(const Settings & settings);
static int getDefaultLevel(CompressionMethod method);
};
}