Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 70537 invoked from network); 20 Aug 2009 17:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Aug 2009 17:05:44 -0000 Received: (qmail 44821 invoked by uid 500); 20 Aug 2009 17:06:03 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 44802 invoked by uid 500); 20 Aug 2009 17:06:03 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 44786 invoked by uid 99); 20 Aug 2009 17:06:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 17:06:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 17:04:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DA7CD234C1E9 for ; Thu, 20 Aug 2009 10:04:14 -0700 (PDT) Message-ID: <1289825689.1250787854894.JavaMail.jira@brutus> Date: Thu, 20 Aug 2009 10:04:14 -0700 (PDT) From: "Stu Hood (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Updated: (CASSANDRA-242) Implement method to "evenly" split a Range In-Reply-To: <468405498.1245444007822.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stu Hood updated CASSANDRA-242: ------------------------------- Attachment: CASSANDRA-242.diff Fixed to apply against current trunk (getInitialToken -> getToken): no other changes. > 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 > > > 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.