java-driver
java-driver copied to clipboard
4.x: Implement PartitionerMap
Since in scylla CDC tables should get cdc partitioner instead default one, we need something that would hold that partitioner information and provide it upon request. Currently it is done in inderect way at https://github.com/scylladb/java-driver/blob/cf9f8f05a20db5033311ff1d5e88dbc124ae1c12/core/src/main/java/com/datastax/oss/driver/internal/core/cql/Conversions.java#L390
Which creates unnecessary confusion, to get rid of which we need an instance with following API available at metadata level:
public interface PartitionerMap {
public Partitioner DefaultPartitioner();
public Partitioner GetTablePartitioner(CqlIdentifier ks, CqlIdentifier table);
}
When it is done we need to get rid of prepared statement partitioner hack.