mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
37 lines
835 B
C++
37 lines
835 B
C++
#pragma once
|
|
|
|
#include <Compression/ICompressionCodec.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class CompressionCodecMultiple final : public ICompressionCodec
|
|
{
|
|
public:
|
|
CompressionCodecMultiple() = default;
|
|
explicit CompressionCodecMultiple(Codecs codecs_);
|
|
|
|
uint8_t getMethodByte() const override;
|
|
|
|
String getCodecDesc() const override;
|
|
|
|
UInt32 getMaxCompressedDataSize(UInt32 uncompressed_size) const override;
|
|
|
|
void useInfoAboutType(DataTypePtr data_type) override;
|
|
|
|
protected:
|
|
UInt32 doCompressData(const char * source, UInt32 source_size, char * dest) const override;
|
|
|
|
void doDecompressData(const char * source, UInt32 source_size, char * dest, UInt32 decompressed_size) const override;
|
|
|
|
private:
|
|
Codecs codecs;
|
|
|
|
};
|
|
|
|
|
|
class CompressionCodecFactory;
|
|
void registerCodecMultiple(CompressionCodecFactory & factory);
|
|
|
|
}
|