Skip to content

Commit ff2aa17

Browse files
committed
partitioner: add module docstring
1 parent 280921a commit ff2aa17

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scylla/src/routing/partitioner.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
//! Partitioners are algorithms that can compute token for a given partition key,
2+
//! ultimately allowing optimised routing of requests (such that a request is routed
3+
//! to replicas, which are nodes and shards that really own the data the request concerns).
4+
//! Currently, two partitioners are supported:
5+
//! - Murmur3Partitioner
6+
//! - the default partitioner,
7+
//! - modified for compatibility with Cassandra's buggy implementation.
8+
//! - CDCPartitioner
9+
//! - the partitioner employed when using CDC (_Change Data Capture_).
10+
111
use bytes::Buf;
212
use scylla_cql::{frame::types::RawValue, types::serialize::row::SerializedValues};
313
use std::num::Wrapping;

0 commit comments

Comments
 (0)