mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Added comments.
This commit is contained in:
parent
ea8fae8142
commit
820e95ae3c
@ -6,10 +6,15 @@
|
||||
namespace DB
|
||||
{
|
||||
|
||||
/// `SeekAvoidingReadBuffer` prefers sequential reads over seeks within specified window.
|
||||
/// It is useful in network and spinning disk storage media when seek is relatively expensive
|
||||
/// operation.
|
||||
/// See also: `merge_tree_min_rows_for_seek`.
|
||||
class SeekAvoidingReadBuffer : public ReadBufferFromFileBase
|
||||
{
|
||||
std::unique_ptr<ReadBufferFromFileBase> nested;
|
||||
UInt64 min_bytes_for_seek;
|
||||
|
||||
UInt64 min_bytes_for_seek; /// Minimum positive seek offset which shall be executed using seek operation.
|
||||
|
||||
public:
|
||||
SeekAvoidingReadBuffer(std::unique_ptr<ReadBufferFromFileBase> nested_, UInt64 min_bytes_for_seek_);
|
||||
|
Loading…
Reference in New Issue
Block a user