Module partitioner

Source
Expand description

Partitioners are algorithms that can compute token for a given partition key, ultimately allowing optimised routing of requests (such that a request is routed to replicas, which are nodes and shards that really own the data the request concerns). Currently, two partitioners are supported:

  • Murmur3Partitioner
    • the default partitioner,
    • modified for compatibility with Cassandra’s buggy implementation.
  • CDCPartitioner
    • the partitioner employed when using CDC (Change Data Capture).

Structs§

CDCPartitioner
CDCPartitionerHasher
Murmur3Partitioner
Murmur3PartitionerHasher

Enums§

PartitionerHasherAny
PartitionerName

Traits§

Partitioner
A trait for creating instances of PartitionHasher, which ultimately compute the token.
PartitionerHasher
A trait for hashing a stream of serialized CQL values.