mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-22 17:50:47 +00:00
added comments [#CLICKHOUSE-3305]
This commit is contained in:
parent
371e234f01
commit
10bbf0871b
@ -11,7 +11,7 @@ namespace DB
|
||||
|
||||
class Context;
|
||||
|
||||
/// Manages user-defined dictionaries.
|
||||
/// Manages user-defined models.
|
||||
class ExternalModels : public ExternalLoader
|
||||
{
|
||||
public:
|
||||
|
@ -22,6 +22,8 @@ struct ExternalLoadableLifetime final
|
||||
ExternalLoadableLifetime(const Poco::Util::AbstractConfiguration & config, const std::string & config_prefix);
|
||||
};
|
||||
|
||||
|
||||
/// Basic interface for external loadable objects. Is used in ExternalLoader.
|
||||
class IExternalLoadable : public std::enable_shared_from_this<IExternalLoadable>
|
||||
{
|
||||
public:
|
||||
@ -30,11 +32,11 @@ public:
|
||||
virtual const ExternalLoadableLifetime & getLifetime() const = 0;
|
||||
|
||||
virtual std::string getName() const = 0;
|
||||
|
||||
/// True if object can be updated when lifetime exceeded.
|
||||
virtual bool supportUpdates() const = 0;
|
||||
|
||||
/// If lifetime exceeded and isModified() ExternalLoader replace current object with the result of clone().
|
||||
virtual bool isModified() const = 0;
|
||||
|
||||
/// Returns new object with the same configuration. Is used to update modified object when lifetime exceeded.
|
||||
virtual std::unique_ptr<IExternalLoadable> clone() const = 0;
|
||||
|
||||
virtual std::exception_ptr getCreationException() const = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user