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
|
|
|
|
|
{
|
|
|
|
|
/** Метод сжатия */
|
|
|
|
|
enum Enum
|
|
|
|
|
{
|
|
|
|
|
QuickLZ = 0,
|
|
|
|
|
LZ4 = 1,
|
2014-03-02 05:12:51 +00:00
|
|
|
|
LZ4HC = 2, /// Формат такой же, как у LZ4. Разница только при сжатии.
|
2012-01-05 18:35:22 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|