/* * SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0 */ /* Copyright 2022-present ScyllaDB */ #pragma once #include "cql3/statements/select_statement.hh" #include "cql3/selection/selection.hh" namespace cql3 { namespace statements { class prune_materialized_view_statement : public primary_key_select_statement { public: prune_materialized_view_statement(schema_ptr schema, uint32_t bound_terms, lw_shared_ptr parameters, ::shared_ptr selection, ::shared_ptr restrictions, ::shared_ptr> group_by_cell_indices, bool is_reversed, ordering_comparator_type ordering_comparator, std::optional limit, std::optional per_partition_limit, cql_stats &stats, std::unique_ptr attrs) : primary_key_select_statement(schema, bound_terms, parameters, selection, restrictions, group_by_cell_indices, is_reversed, ordering_comparator, limit, per_partition_limit, stats, std::move(attrs)) {} private: virtual future<::shared_ptr> do_execute(query_processor& qp, service::query_state& state, const query_options& options) const override; }; } }