Files
scylladb/service/pager/query_pagers.hh
Avi Kivity f3eade2f62 treewide: relicense to ScyllaDB-Source-Available-1.0
Drop the AGPL license in favor of a source-available license.
See the blog post [1] for details.

[1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
2024-12-18 17:45:13 +02:00

53 lines
1.5 KiB
C++

/*
* Copyright (C) 2015-present ScyllaDB
*
* Modified by ScyllaDB
*/
/*
* SPDX-License-Identifier: (LicenseRef-ScyllaDB-Source-Available-1.0 and Apache-2.0)
*/
#pragma once
#include <seastar/core/shared_ptr.hh>
#include "schema/schema_fwd.hh"
#include "query-request.hh"
#include "service/query_state.hh"
#include "cql3/selection/selection.hh"
#include "cql3/query_options.hh"
#include "query_pager.hh"
namespace service {
class storage_proxy;
namespace pager {
class query_pagers {
public:
static bool may_need_paging(const schema& s, uint32_t page_size, const query::read_command&,
const dht::partition_range_vector&);
static std::unique_ptr<query_pager> pager(service::storage_proxy& p, schema_ptr,
shared_ptr<const cql3::selection::selection>,
service::query_state&,
const cql3::query_options&,
lw_shared_ptr<query::read_command>,
dht::partition_range_vector,
::shared_ptr<const cql3::restrictions::statement_restrictions> filtering_restrictions = nullptr,
query_function query_function_override = {});
static ::shared_ptr<query_pager> ghost_row_deleting_pager(schema_ptr,
shared_ptr<const cql3::selection::selection>,
service::query_state&,
const cql3::query_options&,
lw_shared_ptr<query::read_command>,
dht::partition_range_vector,
cql3::cql_stats& stats,
storage_proxy& proxy,
db::timeout_clock::duration timeout_duration);
};
}
}