mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
29 lines
610 B
C++
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;
|
||
|
};
|
||
|
|
||
|
}
|