ClickHouse/src/Dictionaries/DictionaryBlockInputStreamBase.h

25 lines
472 B
C++
Raw Normal View History

2017-04-28 18:33:31 +00:00
#pragma once
2018-08-24 05:37:06 +00:00
#include <DataStreams/IBlockInputStream.h>
2017-04-28 18:33:31 +00:00
namespace DB
2017-04-28 18:33:31 +00:00
{
class DictionaryBlockInputStreamBase : public IBlockInputStream
2017-04-28 18:33:31 +00:00
{
protected:
2019-08-03 11:02:40 +00:00
DictionaryBlockInputStreamBase(size_t rows_count_, size_t max_block_size_);
2017-04-28 18:33:31 +00:00
virtual Block getBlock(size_t start, size_t length) const = 0;
Block getHeader() const override;
2017-04-28 18:33:31 +00:00
private:
const size_t rows_count;
const size_t max_block_size;
size_t next_row = 0;
2017-04-28 18:33:31 +00:00
Block readImpl() override;
};
}