Implement CDCPartitioner
Add new class CDCToken which implements a Scylla CDC partitioner, as defined here:
https://github.com/scylladb/scylla/blob/master/cdc/cdc_partitioner.cc
Modify Metadata to use CDC partitioner instead of cluster-wide partitioner when calculating token for CDC log table. As Scylla token range information is shared between Murmur3 partitioner and CDC partitioner only a single TokenMap is used.
(In case of Scylla) this TokenMap stores M3PToken tokens, but queries for CDCToken are allowed - M3PToken and CDCToken are modified to allow comparison between those types (as they are both represented by 64-bit integers).
Analogue PR to java driver: https://github.com/scylladb/java-driver/pull/35
Modify
Statementclasses to provide table name alongside already implemented keyspace name, in order to detect if CDC partitioner should be used for a givenStatement.
Isn't this already done because of tablets?
Modify
Statementclasses to provide table name alongside already implemented keyspace name, in order to detect if CDC partitioner should be used for a givenStatement.Isn't this already done because of tablets?
True, removed