aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Disks/IO/getThreadPoolReader.h
blob: 243e0e5478fbf59bc9c4cf7dd81505ceb56e5689 (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
#pragma once

namespace Poco::Util { class AbstractConfiguration; }

namespace DB
{

class IAsynchronousReader;

enum class FilesystemReaderType
{
    SYNCHRONOUS_LOCAL_FS_READER,
    ASYNCHRONOUS_LOCAL_FS_READER,
    ASYNCHRONOUS_REMOTE_FS_READER,
};

IAsynchronousReader & getThreadPoolReader(FilesystemReaderType type);

std::unique_ptr<IAsynchronousReader> createThreadPoolReader(
    FilesystemReaderType type,
    const Poco::Util::AbstractConfiguration & config);

}