ClickHouse/dbms/include/DB/Dictionaries/IDictionarySource.h
Andrey Mironov 95bb52b8e5 dbms: use PODArray with FlatDictionary [#METR-13298]
remove IDictionarySource::reset
2015-01-28 19:23:52 +03:00

22 lines
431 B
C++

#pragma once
#include <DB/DataStreams/IBlockInputStream.h>
#include <vector>
namespace DB
{
class IDictionarySource
{
public:
virtual BlockInputStreamPtr loadAll() = 0;
virtual BlockInputStreamPtr loadId(const std::uint64_t id) = 0;
virtual BlockInputStreamPtr loadIds(const std::vector<std::uint64_t> ids) = 0;
virtual ~IDictionarySource() = default;
};
using DictionarySourcePtr = std::unique_ptr<IDictionarySource>;
}