Details
-
New Feature
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Two tickets currently depend on being able to deterministically split a Range object into two "even" Ranges.
This can be accomplished with RandomPartitioner/BigIntegerToken by taking the average of the tokens, but the OrderPreservingPartitioner/StringToken implementation uses a Java Collator to define the sort order of Tokens, which means that they are not necessarily sorted in byte/char order.
Collator.getCollationKey(String).toByteArray() gets you a sortable byte array, but there is no publicly accessible API for converting a similar byte array back into a String.
Attachments
Attachments
Issue Links
- blocks
-
CASSANDRA-192 Load balancing
- Resolved
-
CASSANDRA-193 Proactive repair
- Resolved
-
CASSANDRA-342 hadoop integration
- Resolved