mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
32 lines
558 B
C++
32 lines
558 B
C++
#pragma once
|
|
|
|
#include <IO/ReadBuffer.h>
|
|
#include <IO/CompressedReadBufferWrapper.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Bzip2ReadBuffer : public CompressedReadBufferWrapper
|
|
{
|
|
public:
|
|
explicit Bzip2ReadBuffer(
|
|
std::unique_ptr<ReadBuffer> in_,
|
|
size_t buf_size = DBMS_DEFAULT_BUFFER_SIZE,
|
|
char * existing_memory = nullptr,
|
|
size_t alignment = 0);
|
|
|
|
~Bzip2ReadBuffer() override;
|
|
|
|
private:
|
|
bool nextImpl() override;
|
|
|
|
class Bzip2StateWrapper;
|
|
std::unique_ptr<Bzip2StateWrapper> bz;
|
|
|
|
bool eof_flag;
|
|
};
|
|
|
|
}
|
|
|