mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-22 07:42:16 +00:00
36 lines
636 B
C++
36 lines
636 B
C++
/*
|
|
* Copyright (C) 2020-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
|
|
*/
|
|
|
|
#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;
|
|
};
|
|
|
|
|
|
}
|