mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +00:00
22 lines
389 B
C++
22 lines
389 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <fcntl.h>
|
|
|
|
#include <IO/WriteBuffer.h>
|
|
#include <IO/BufferWithOwnMemory.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class WriteBufferFromFileBase : public BufferWithOwnMemory<WriteBuffer>
|
|
{
|
|
public:
|
|
WriteBufferFromFileBase(size_t buf_size, char * existing_memory, size_t alignment);
|
|
|
|
void sync() override = 0;
|
|
virtual std::string getFileName() const = 0;
|
|
};
|
|
|
|
}
|