ClickHouse/src/IO/WriteSettings.h

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

34 lines
875 B
C++
Raw Normal View History

2022-03-21 08:52:48 +00:00
#pragma once
2022-03-14 18:40:53 +00:00
#include <Common/Throttler_fwd.h>
#include <Common/Scheduler/ResourceLink.h>
2022-03-14 18:40:53 +00:00
namespace DB
{
2022-04-07 16:46:46 +00:00
/// Settings to be passed to IDisk::writeFile()
2022-03-14 18:40:53 +00:00
struct WriteSettings
{
/// Bandwidth throttler to use during writing
2022-07-14 15:33:22 +00:00
ThrottlerPtr remote_throttler;
ThrottlerPtr local_throttler;
2022-07-16 20:49:15 +00:00
2023-01-27 18:47:22 +00:00
// Resource to be used during reading
ResourceLink resource_link;
2022-07-16 20:49:15 +00:00
/// Filesystem cache settings
2022-03-30 11:47:44 +00:00
bool enable_filesystem_cache_on_write_operations = false;
2022-05-14 12:26:04 +00:00
bool enable_filesystem_cache_log = false;
bool throw_on_error_from_cache = false;
2024-03-13 11:36:47 +00:00
size_t filesystem_cache_reserve_space_wait_lock_timeout_milliseconds = 1000;
bool s3_allow_parallel_part_upload = true;
/// Monitoring
bool for_object_storage = false; // to choose which profile events should be incremented
bool operator==(const WriteSettings & other) const = default;
2022-03-14 18:40:53 +00:00
};
}