mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 10:30:38 +00:00
dht: murmur3_partitioner: move get_token() implementation to .cc
This commit is contained in:
@@ -31,6 +31,16 @@ murmur3_partitioner::get_token(bytes_view key) {
|
||||
return token{token::kind::key, std::move(b)};
|
||||
}
|
||||
|
||||
token
|
||||
murmur3_partitioner::get_token(const sstables::key_view& key) {
|
||||
return get_token(bytes_view(key));
|
||||
}
|
||||
|
||||
token
|
||||
murmur3_partitioner::get_token(const partition_key& key) {
|
||||
return get_token(bytes_view(key));
|
||||
}
|
||||
|
||||
inline long long_token(const token& t) {
|
||||
|
||||
if (t._data.size() != sizeof(long)) {
|
||||
|
||||
@@ -12,12 +12,8 @@ namespace dht {
|
||||
|
||||
class murmur3_partitioner final : public i_partitioner {
|
||||
public:
|
||||
virtual token get_token(const partition_key& key) override {
|
||||
return get_token(bytes_view(key));
|
||||
}
|
||||
virtual token get_token(const sstables::key_view& key) override {
|
||||
return get_token(bytes_view(key));
|
||||
}
|
||||
virtual token get_token(const partition_key& key);
|
||||
virtual token get_token(const sstables::key_view& key);
|
||||
virtual bool preserves_order() override { return false; }
|
||||
virtual std::map<token, float> describe_ownership(const std::vector<token>& sorted_tokens);
|
||||
virtual data_type get_token_validator();
|
||||
|
||||
Reference in New Issue
Block a user