MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getReadSettingsForMetadata

Function getReadSettingsForMetadata

src/IO/ReadSettings.cpp:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26ReadSettings getReadSettingsForMetadata()
27{
28 ReadSettings read_settings = getReadSettings();
29 read_settings.local_fs_settings.method = LocalFSReadMethod::read;
30 read_settings.remote_fs_settings.method = RemoteFSReadMethod::threadpool;
31 read_settings.remote_fs_settings.prefetch = false;
32 read_settings.enable_filesystem_cache = false;
33 read_settings.read_through_distributed_cache = false;
34 read_settings.local_fs_settings.buffer_size = METADATA_FILE_BUFFER_SIZE;
35 read_settings.remote_fs_settings.buffer_size = METADATA_FILE_BUFFER_SIZE;
36
37 return read_settings;
38}
39
40ReadSettings ReadSettings::adjustBufferSize(size_t file_size) const
41{

Callers 4

getColumnSampleMethod · 0.85
executeMethod · 0.85
readMetadataFileFunction · 0.85

Calls 1

getReadSettingsFunction · 0.85

Tested by

no test coverage detected