#pragma once #include #include namespace DB { class WriteBufferFromNuraftBuffer : public WriteBuffer { public: WriteBufferFromNuraftBuffer(); nuraft::ptr getBuffer(); ~WriteBufferFromNuraftBuffer() override; private: void finalizeImpl() override final; void nextImpl() override; nuraft::ptr buffer; static constexpr size_t initial_size = 32; static constexpr size_t size_multiplier = 2; }; }