aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Storages/MergeTree/IMergeTreeReadPool.h
blob: efdfca51c0a780748b31c7a935e65284fb5079fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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>;

}