ClickHouse/dbms/include/DB/IO/CompressedStream.h

28 lines
377 B
C
Raw Normal View History

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
#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
#define LZ4_ADDITIONAL_SPACE_MIN 8.0
#define LZ4_ADDITIONAL_SPACE_K 0.004
namespace DB
{
namespace CompressionMethod
{
/** Метод сжатия */
enum Enum
{
QuickLZ = 0,
LZ4 = 1,
};
}
}