ClickHouse/src/Common/ExternalLoaderStatus.h

25 lines
925 B
C++
Raw Normal View History

2020-03-17 09:24:24 +00:00
#pragma once
2020-03-17 11:36:41 +00:00
#include <vector>
#include <utility>
#include <ostream>
2020-09-15 09:55:57 +00:00
#include <common/types.h>
2020-03-17 11:36:41 +00:00
2020-03-17 09:24:24 +00:00
namespace DB
{
enum class ExternalLoaderStatus
{
NOT_LOADED, /// Object hasn't been tried to load. This is an initial state.
LOADED, /// Object has been loaded successfully.
FAILED, /// Object has been failed to load.
LOADING, /// Object is being loaded right now for the first time.
FAILED_AND_RELOADING, /// Object was failed to load before and it's being reloaded right now.
LOADED_AND_RELOADING, /// Object was loaded successfully before and it's being reloaded right now.
NOT_EXIST, /// Object with this name wasn't found in the configuration.
};
2020-03-17 10:43:57 +00:00
String toString(ExternalLoaderStatus status);
std::vector<std::pair<String, Int8>> getStatusEnumAllPossibleValues();
std::ostream & operator<<(std::ostream & out, ExternalLoaderStatus status);
2020-03-17 09:24:24 +00:00
}