mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
30 lines
633 B
C++
30 lines
633 B
C++
|
#pragma once
|
||
|
|
||
|
#include <boost/noncopyable.hpp>
|
||
|
#include <Core/Block.h>
|
||
|
#include <IO/ReadBufferFromFileBase.h>
|
||
|
#include <Storages/MergeTree/MergeTreeData.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
struct MergeTreeReadTask;
|
||
|
using MergeTreeReadTaskPtr = std::unique_ptr<MergeTreeReadTask>;
|
||
|
|
||
|
|
||
|
class IMergeTreeReadPool : private boost::noncopyable
|
||
|
{
|
||
|
public:
|
||
|
virtual ~IMergeTreeReadPool() = default;
|
||
|
|
||
|
virtual Block getHeader() const = 0;
|
||
|
|
||
|
virtual MergeTreeReadTaskPtr getTask(size_t thread) = 0;
|
||
|
|
||
|
virtual void profileFeedback(ReadBufferFromFileBase::ProfileInfo info) = 0;
|
||
|
};
|
||
|
|
||
|
using MergeTreeReadPoolPtr = std::shared_ptr<IMergeTreeReadPool>;
|
||
|
|
||
|
}
|