ClickHouse/src/Storages/System/StorageSystemStoragePolicies.h

37 lines
946 B
C++
Raw Normal View History

#pragma once
2021-10-02 07:13:14 +00:00
#include <base/shared_ptr_helper.h>
#include <Formats/FormatSettings.h>
#include <Storages/IStorage.h>
#include <Storages/MergeTree/MergeTreeData.h>
namespace DB
{
class Context;
/** Implements the system table `storage`, which allows you to get information about all disks.
*/
2021-06-15 19:55:21 +00:00
class StorageSystemStoragePolicies final : public shared_ptr_helper<StorageSystemStoragePolicies>, public IStorage
{
2021-06-15 19:55:21 +00:00
friend struct shared_ptr_helper<StorageSystemStoragePolicies>;
public:
std::string getName() const override { return "SystemStoragePolicies"; }
2020-08-06 12:24:05 +00:00
Pipe read(
const Names & column_names,
const StorageMetadataPtr & /*metadata_snapshot*/,
SelectQueryInfo & query_info,
ContextPtr context,
QueryProcessingStage::Enum processed_stage,
size_t max_block_size,
unsigned num_streams) override;
protected:
2020-08-12 20:40:13 +00:00
StorageSystemStoragePolicies(const StorageID & table_id_);
};
}