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/
36 lines
636 B
C++
36 lines
636 B
C++
/*
|
|
* Copyright (C) 2020-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/sstring.hh>
|
|
|
|
#include "dht/i_partitioner.hh"
|
|
|
|
class schema;
|
|
|
|
namespace sstables {
|
|
|
|
class key_view;
|
|
|
|
}
|
|
|
|
namespace cdc {
|
|
|
|
struct cdc_partitioner final : public dht::i_partitioner {
|
|
static const sstring classname;
|
|
|
|
cdc_partitioner() = default;
|
|
virtual const sstring name() const override;
|
|
virtual dht::token get_token(const schema& s, partition_key_view key) const override;
|
|
virtual dht::token get_token(const sstables::key_view& key) const override;
|
|
};
|
|
|
|
|
|
}
|