mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 11:52:27 +00:00
30 lines
745 B
C++
30 lines
745 B
C++
|
#pragma once
|
||
|
|
||
|
#include <common/shared_ptr_helper.h>
|
||
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class Context;
|
||
|
|
||
|
|
||
|
/** Implements the `rocksdb` system table, which expose various rocksdb metrics.
|
||
|
*/
|
||
|
class StorageSystemRocksDB final : public shared_ptr_helper<StorageSystemRocksDB>, public IStorageSystemOneBlock<StorageSystemRocksDB>
|
||
|
{
|
||
|
friend struct shared_ptr_helper<StorageSystemRocksDB>;
|
||
|
public:
|
||
|
std::string getName() const override { return "SystemRocksDB"; }
|
||
|
|
||
|
static NamesAndTypesList getNamesAndTypes();
|
||
|
|
||
|
protected:
|
||
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
||
|
|
||
|
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override;
|
||
|
};
|
||
|
|
||
|
}
|