-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
session: Impl calculate_token_for_partition_key()
So far, the driver has provided a way to calculate token based on a PreparedStatement and values for that statement. However, if a user knows: - the order of the columns in the partition key, - the values of the columns of the partition key, - the partitioner of the table that the statement operates on, then having a PreparedStatement is not necessary and the token can be calculated based on that information. The function calculate_token_for_partition_key() is added, which does that calculation, along with a test.
- Loading branch information
Showing
2 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters