mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
32 lines
773 B
C++
32 lines
773 B
C++
#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:
|
|
CompressionCodecNone();
|
|
|
|
uint8_t getMethodByte() const override;
|
|
|
|
void updateHash(SipHash & hash) const 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 uncompressed_size) const override;
|
|
|
|
bool isCompression() const override { return false; }
|
|
bool isGenericCompression() const override { return false; }
|
|
bool isNone() const override { return true; }
|
|
};
|
|
|
|
}
|