ClickHouse/dbms/src/Dictionaries/DictionaryBlockInputStreamBase.h

29 lines
536 B
C++
Raw Normal View History

2017-04-28 18:33:31 +00:00
#pragma once
#include <DataStreams/IProfilingBlockInputStream.h>
namespace DB
2017-04-28 18:33:31 +00:00
{
class DictionaryBlockInputStreamBase : public IProfilingBlockInputStream
{
protected:
Block block;
DictionaryBlockInputStreamBase(size_t rows_count, size_t max_block_size);
2017-04-28 18:33:31 +00:00
String getID() const override;
virtual Block getBlock(size_t start, size_t length) const = 0;
Block getHeader() 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;
};
}