ClickHouse/src/Storages/Distributed/DistributedAsyncInsertSource.h
Azat Khuzhin 33b13549ad Separate out DirectoryMonitorSource as DistributedAsyncInsertSource
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-28 22:33:36 +01:00

29 lines
610 B
C++

#pragma once
#include <Processors/ISource.h>
#include <base/types.h>
#include <memory>
namespace DB
{
/// Source for the Distributed engine on-disk file for async INSERT.
class DistributedAsyncInsertSource : public ISource
{
struct Data;
explicit DistributedAsyncInsertSource(std::unique_ptr<Data> data);
public:
explicit DistributedAsyncInsertSource(const String & file_name);
~DistributedAsyncInsertSource() override;
String getName() const override { return "DistributedAsyncInsertSource"; }
protected:
Chunk generate() override;
private:
std::unique_ptr<Data> data;
};
}