2012-01-05 10:22:02 +00:00
|
|
|
|
#pragma once
|
2011-06-17 21:19:39 +00:00
|
|
|
|
|
2012-01-05 10:22:02 +00:00
|
|
|
|
/** Общие дефайны */
|
2011-06-17 21:19:39 +00:00
|
|
|
|
|
2011-06-27 18:33:23 +00:00
|
|
|
|
#define DBMS_MAX_COMPRESSED_SIZE 0x40000000ULL /// 1GB
|
2012-01-05 18:35:22 +00:00
|
|
|
|
|
2011-06-17 21:19:39 +00:00
|
|
|
|
#define QUICKLZ_ADDITIONAL_SPACE 400
|
|
|
|
|
#define QUICKLZ_HEADER_SIZE 9
|
2012-01-05 18:35:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
namespace CompressionMethod
|
|
|
|
|
{
|
2014-10-05 21:59:23 +00:00
|
|
|
|
/** Метод сжатия */
|
2012-01-05 18:35:22 +00:00
|
|
|
|
enum Enum
|
|
|
|
|
{
|
2014-10-05 21:59:23 +00:00
|
|
|
|
QuickLZ,
|
|
|
|
|
LZ4,
|
|
|
|
|
LZ4HC, /// Формат такой же, как у LZ4. Разница только при сжатии.
|
2012-01-05 18:35:22 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|