[
https://issues.apache.org/jira/browse/CASSANDRA-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748355#action_12748355
]
Hudson commented on CASSANDRA-242:
----------------------------------
Integrated in Cassandra #179 (See
[http://hudson.zones.apache.org/hudson/job/Cassandra/179/])
fix unit test. patch by jbellis for
add midpoint method to IPartitioner. patch by Stu Hood; reviewed by jbellis
for
refactors COPP to use BytesToken. patch by Stu Hood; reviewed by jbellis for
> Implement method to "evenly" split a Range
> ------------------------------------------
>
> Key: CASSANDRA-242
> URL: https://issues.apache.org/jira/browse/CASSANDRA-242
> Project: Cassandra
> Issue Type: New Feature
> Components: Core
> Affects Versions: 0.4
> Reporter: Stu Hood
> Assignee: Stu Hood
> Fix For: 0.4
>
> Attachments: CASSANDRA-242.diff, CASSANDRA-242.diff,
> CASSANDRA-242.diff, CASSANDRA-242.diff, CASSANDRA-242.diff,
> CASSANDRA-242_part-1.diff, CASSANDRA-242_part-1.diff,
> CASSANDRA-242_part-2.diff, CASSANDRA-242_part-2.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.