ClickHouse/src/Storages/System/StorageSystemReplicatedFetches.h

29 lines
796 B
C++
Raw Normal View History

2020-10-26 16:38:35 +00:00
#pragma once
2020-10-27 12:24:10 +00:00
2021-06-15 19:55:21 +00:00
#include <common/shared_ptr_helper.h>
2020-10-26 16:38:35 +00:00
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
2020-10-27 13:09:14 +00:00
/// system.replicated_fetches table. Takes data from context.getReplicatedFetchList()
2021-06-15 19:55:21 +00:00
class StorageSystemReplicatedFetches final : public shared_ptr_helper<StorageSystemReplicatedFetches>, public IStorageSystemOneBlock<StorageSystemReplicatedFetches >
2020-10-26 16:38:35 +00:00
{
2021-06-15 19:55:21 +00:00
friend struct shared_ptr_helper<StorageSystemReplicatedFetches>;
2020-10-26 16:38:35 +00:00
public:
2020-10-27 13:07:50 +00:00
std::string getName() const override { return "SystemReplicatedFetches"; }
2020-10-26 16:38:35 +00:00
static NamesAndTypesList getNamesAndTypes();
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override;
2020-10-26 16:38:35 +00:00
};
}