mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
32 lines
818 B
C++
32 lines
818 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Poco/AutoPtr.h>
|
||
|
#include <Poco/Timestamp.h>
|
||
|
#include <Poco/Util/AbstractConfiguration.h>
|
||
|
|
||
|
#include <string>
|
||
|
#include <set>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
/** Repository with configurations of user-defined objects (dictionaries, models).
|
||
|
* Used by ExternalLoader.
|
||
|
*/
|
||
|
class IExternalLoaderConfigRepository
|
||
|
{
|
||
|
public:
|
||
|
using Files = std::set<std::string>;
|
||
|
virtual Files list(const Poco::Util::AbstractConfiguration & config, const std::string & path_key) const = 0;
|
||
|
|
||
|
virtual bool exists(const std::string & config_file) const = 0;
|
||
|
|
||
|
virtual Poco::Timestamp getLastModificationTime(const std::string & config_file) const = 0;
|
||
|
|
||
|
virtual Poco::AutoPtr<Poco::Util::AbstractConfiguration> load(const std::string & config_file) const = 0;
|
||
|
|
||
|
virtual ~IExternalLoaderConfigRepository() {}
|
||
|
};
|
||
|
|
||
|
}
|