Files
scylladb/readers/next_partition_adaptor.hh
Avi Kivity 0ae22a09d4 LICENSE: Update to version 1.1
Updated terms of non-commercial use (must be a never-customer).
2026-04-12 19:46:33 +03:00

19 lines
513 B
C++

/*
* Copyright (C) 2022-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
*/
#pragma once
class mutation_reader;
// Create an adaptor which provides a next_partition() implementation for
// readers which don't have one.
// `next_partition()` is implemented by discarding fragments until the next one
// is a partition start one.
// The returned reader doesn't support any form of fast-forwarding.
mutation_reader make_next_partition_adaptor(mutation_reader&& rd);