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

Method ReaderExecutor

src/IO/ReaderExecutor.cpp:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73ReaderExecutor::ReaderExecutor(
74 std::shared_ptr<IFileBasedSourceReader> source_,
75 const StoredObjects & objects,
76 size_t block_size_)
77 : source(std::move(source_))
78 , block_size(block_size_ ? block_size_ : DEFAULT_BLOCK_SIZE)
79 , active_metric(CurrentMetrics::ReaderExecutorActive)
80{
81 offset_map.build(objects);
82 log_file_path = objects.empty() ? "" : objects.front().remote_path;
83 LOG_DEBUG(log, "Created: source={}, objects={}, total_size={}, block_size={}",
84 source ? source->name() : "none", objects.size(), offset_map.totalSize(), block_size);
85}
86
87ReaderExecutor::~ReaderExecutor()
88{

Callers

nothing calls this directly

Calls 6

buildMethod · 0.45
emptyMethod · 0.45
frontMethod · 0.45
nameMethod · 0.45
sizeMethod · 0.45
totalSizeMethod · 0.45

Tested by

no test coverage detected