2021-06-24 23:05:45 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-02 07:13:14 +00:00
|
|
|
#include <base/shared_ptr_helper.h>
|
2021-06-27 00:20:28 +00:00
|
|
|
#include <Storages/IStorage.h>
|
|
|
|
|
2021-06-24 23:05:45 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2021-06-27 00:20:28 +00:00
|
|
|
|
|
|
|
/// For system.data_skipping_indices table - describes the data skipping indices in tables, similar to system.columns.
|
2021-06-24 23:05:45 +00:00
|
|
|
class StorageSystemDataSkippingIndices : public shared_ptr_helper<StorageSystemDataSkippingIndices>, public IStorage
|
|
|
|
{
|
|
|
|
friend struct shared_ptr_helper<StorageSystemDataSkippingIndices>;
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemDataSkippingIndices"; }
|
|
|
|
|
|
|
|
Pipe read(
|
|
|
|
const Names & column_names,
|
2021-07-09 03:15:41 +00:00
|
|
|
const StorageSnapshotPtr & storage_snapshot,
|
2021-06-24 23:05:45 +00:00
|
|
|
SelectQueryInfo & query_info,
|
|
|
|
ContextPtr context,
|
|
|
|
QueryProcessingStage::Enum processed_stage,
|
|
|
|
size_t max_block_size,
|
|
|
|
unsigned num_streams) override;
|
|
|
|
|
2021-11-19 10:25:55 +00:00
|
|
|
bool isSystemStorage() const override { return true; }
|
|
|
|
|
2021-06-24 23:05:45 +00:00
|
|
|
protected:
|
2022-03-13 12:23:51 +00:00
|
|
|
explicit StorageSystemDataSkippingIndices(const StorageID & table_id_);
|
2021-06-24 23:05:45 +00:00
|
|
|
};
|
2021-06-27 00:20:28 +00:00
|
|
|
|
2021-06-24 23:05:45 +00:00
|
|
|
}
|