ClickHouse/dbms/src/Dictionaries/DictionaryBlockInputStreamBase.h

24 lines
461 B
C++
Raw Normal View History

2017-04-28 18:33:31 +00:00
#pragma once
#include <DataStreams/IProfilingBlockInputStream.h>
namespace DB
{
class DictionaryBlockInputStreamBase : public IProfilingBlockInputStream
{
protected:
Block block;
DictionaryBlockInputStreamBase() : was_read(false) {}
String getID() const override;
private:
bool was_read;
Block readImpl() override;
void readPrefixImpl() override { was_read = false; }
void readSuffixImpl() override { was_read = false; }
};
}