cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stu Hood (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-242) Implement method to "evenly" split a Range
Date Mon, 24 Aug 2009 19:19:59 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747027#action_12747027
] 

Stu Hood commented on CASSANDRA-242:
------------------------------------

> well, I've said that this is a fairly large patch to review all-at-once, and suggested
one
> way to break it into pieces. was that a bad suggestion?
Hmm, I actually thought you were joking. I'll split it.

> at a high level the way it makes sense in my mind is to make the refactor of decoration
> to (Token, Key) first, and then add this as a decoratedkey implementation later. 
As I mentioned in https://issues.apache.org/jira/browse/CASSANDRA-242?focusedCommentId=12746188&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12746188
I don't see how this ticket is at all related to the decoratedKey refactor.

> 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
>
>
> 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.


Mime
View raw message