ClickHouse/src/Storages/Distributed/DistributedAsyncInsertSource.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
610 B
C++
Raw Normal View History

#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;
};
}