added comments [#CLICKHOUSE-3305]

This commit is contained in:
Nikolai Kochetov 2017-10-26 21:30:28 +03:00
parent 371e234f01
commit 10bbf0871b
2 changed files with 6 additions and 4 deletions

View File

@ -11,7 +11,7 @@ namespace DB
class Context;
/// Manages user-defined dictionaries.
/// Manages user-defined models.
class ExternalModels : public ExternalLoader
{
public:

View File

@ -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;