2018-10-11 02:57:48 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <IO/WriteBuffer.h>
|
|
|
|
#include <Compression/ICompressionCodec.h>
|
|
|
|
#include <IO/BufferWithOwnMemory.h>
|
|
|
|
#include <Parsers/StringRange.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class CompressionCodecNone : public ICompressionCodec
|
|
|
|
{
|
|
|
|
public:
|
2018-12-19 17:20:18 +00:00
|
|
|
UInt8 getMethodByte() const override;
|
2018-10-11 02:57:48 +00:00
|
|
|
|
2018-12-19 17:20:18 +00:00
|
|
|
String getCodecDesc() const override;
|
2018-10-11 02:57:48 +00:00
|
|
|
|
2018-12-19 17:20:18 +00:00
|
|
|
protected:
|
|
|
|
UInt32 doCompressData(const char * source, UInt32 source_size, char * dest) const override;
|
|
|
|
|
|
|
|
void doDecompressData(const char * source, UInt32 source_size, char * dest, UInt32 uncompressed_size) const override;
|
2018-10-11 02:57:48 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2018-12-19 17:20:18 +00:00
|
|
|
}
|