mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 19:14:30 +00:00
26 lines
543 B
C++
26 lines
543 B
C++
#pragma once
|
|
|
|
#include <DB/DataStreams/IBlockInputStream.h>
|
|
#include <vector>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class IDictionarySource;
|
|
using DictionarySourcePtr = std::unique_ptr<IDictionarySource>;
|
|
|
|
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 bool isModified() const = 0;
|
|
|
|
virtual DictionarySourcePtr clone() const = 0;
|
|
|
|
virtual ~IDictionarySource() = default;
|
|
};
|
|
|
|
}
|