2020-10-26 16:38:35 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-10-27 12:24:10 +00:00
|
|
|
|
2020-10-26 16:38:35 +00:00
|
|
|
#include <ext/shared_ptr_helper.h>
|
|
|
|
#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()
|
2020-10-27 13:07:50 +00:00
|
|
|
class StorageSystemReplicatedFetches final : public ext::shared_ptr_helper<StorageSystemReplicatedFetches>, public IStorageSystemOneBlock<StorageSystemReplicatedFetches >
|
2020-10-26 16:38:35 +00:00
|
|
|
{
|
2020-10-27 13:07:50 +00:00
|
|
|
friend struct ext::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, const Context & context, const SelectQueryInfo & query_info) const override;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|