mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
26 lines
489 B
C++
26 lines
489 B
C++
#pragma once
|
|
|
|
#include <DataStreams/IProfilingBlockInputStream.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class DictionaryBlockInputStreamBase : public IProfilingBlockInputStream
|
|
{
|
|
protected:
|
|
DictionaryBlockInputStreamBase(size_t rows_count, size_t max_block_size);
|
|
|
|
virtual Block getBlock(size_t start, size_t length) const = 0;
|
|
|
|
Block getHeader() const override;
|
|
|
|
private:
|
|
const size_t rows_count;
|
|
const size_t max_block_size;
|
|
size_t next_row = 0;
|
|
|
|
Block readImpl() override;
|
|
};
|
|
|
|
}
|