ClickHouse/dbms/Storages/System/StorageSystemReplicas.h

34 lines
806 B
C++
Raw Normal View History

#pragma once
2017-06-06 17:18:32 +00:00
#include <ext/shared_ptr_helper.h>
#include <Storages/IStorage.h>
namespace DB
{
2016-12-08 02:49:04 +00:00
class Context;
2017-04-16 15:00:33 +00:00
/** Implements `replicas` system table, which provides information about the status of the replicated tables.
*/
class StorageSystemReplicas final : public ext::shared_ptr_helper<StorageSystemReplicas>, public IStorage
{
2019-08-26 19:07:29 +00:00
friend struct ext::shared_ptr_helper<StorageSystemReplicas>;
public:
std::string getName() const override { return "SystemReplicas"; }
Pipes read(
const Names & column_names,
const SelectQueryInfo & query_info,
const Context & context,
2018-04-19 15:18:26 +00:00
QueryProcessingStage::Enum processed_stage,
size_t max_block_size,
2017-06-02 15:54:39 +00:00
unsigned num_streams) override;
protected:
StorageSystemReplicas(const std::string & name_);
};
}