mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#include "ExternalLoaderDictionaryStorageConfigRepository.h"
|
|
|
|
#include <Interpreters/Context.h>
|
|
#include <Storages/StorageDictionary.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
ExternalLoaderDictionaryStorageConfigRepository::ExternalLoaderDictionaryStorageConfigRepository(const StorageDictionary & dictionary_storage_)
|
|
: dictionary_storage(dictionary_storage_)
|
|
{
|
|
}
|
|
|
|
std::string ExternalLoaderDictionaryStorageConfigRepository::getName() const
|
|
{
|
|
return dictionary_storage.getStorageID().getInternalDictionaryName();
|
|
}
|
|
|
|
std::set<std::string> ExternalLoaderDictionaryStorageConfigRepository::getAllLoadablesDefinitionNames()
|
|
{
|
|
return { getName() };
|
|
}
|
|
|
|
bool ExternalLoaderDictionaryStorageConfigRepository::exists(const std::string & loadable_definition_name)
|
|
{
|
|
return getName() == loadable_definition_name;
|
|
}
|
|
|
|
Poco::Timestamp ExternalLoaderDictionaryStorageConfigRepository::getUpdateTime(const std::string &)
|
|
{
|
|
return dictionary_storage.getUpdateTime();
|
|
}
|
|
|
|
LoadablesConfigurationPtr ExternalLoaderDictionaryStorageConfigRepository::load(const std::string &)
|
|
{
|
|
return dictionary_storage.getConfiguration();
|
|
}
|
|
|
|
}
|