ClickHouse/src/Compression/CompressionCodecNone.h

29 lines
733 B
C++
Raw Normal View History

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:
2020-01-03 14:39:24 +00:00
uint8_t getMethodByte() const override;
2018-10-11 02:57:48 +00:00
ASTPtr 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
2020-05-04 00:11:49 +00:00
bool isCompression() const override { return false; }
bool isGenericCompression() const override { return false; }
bool isNone() const override { return true; }
2018-10-11 02:57:48 +00:00
};
2018-12-19 17:20:18 +00:00
}