ClickHouse/src/Storages/System/StorageSystemDataSkippingIndices.h

31 lines
883 B
C++
Raw Normal View History

#pragma once
#include <common/shared_ptr_helper.h>
#include <Storages/IStorage.h>
namespace DB
{
/// For system.data_skipping_indices table - describes the data skipping indices in tables, similar to system.columns.
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,
const StorageMetadataPtr & /*metadata_snapshot*/,
SelectQueryInfo & query_info,
ContextPtr context,
QueryProcessingStage::Enum processed_stage,
size_t max_block_size,
unsigned num_streams) override;
protected:
StorageSystemDataSkippingIndices(const StorageID & table_id_);
};
}