Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 35015 invoked from network); 26 Apr 2010 15:27:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Apr 2010 15:27:47 -0000 Received: (qmail 87520 invoked by uid 500); 26 Apr 2010 15:27:46 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 87502 invoked by uid 500); 26 Apr 2010 15:27:46 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 87494 invoked by uid 99); 26 Apr 2010 15:27:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 15:27:46 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 15:27:40 +0000 Received: by wyb35 with SMTP id 35so2892433wyb.31 for ; Mon, 26 Apr 2010 08:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=UR8uNnWpdXlMZjsQEBUkV+bJtcwbz60FjJGHjgLd5N4=; b=DeyxMAacUNQSftO2oUYOAA5kjztdP6aCunHpQtE1DAjuwjWtlA0ZUMAWscmQ5WTQ9q M5AuaOYvSladLfjiJ7JegIKcJDO2EA/yqpDn1f2NVrIT3qbYoaeZkcmj7ohIuuYE/58A 3CCh1HyUqYMn+dGjACDSlOTasoo3qwBaxMupw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=LiZpi6DM9cgW0HYUjUi6vickfsEOxcq7oVI+hfrqC4q3Y6I+I8XDLP2Qk3lD7+Pbho 02NT/jXimvFGPrch/zi8+wnXUOWNZWiE3B9fwRs7rEii7tzgNkAdiV67Mtd2ndrVy39V tXCcyCBAMU4o6qZ8asAf4RQFg0naZAcu5tz2s= Received: by 10.216.154.204 with SMTP id h54mr3137068wek.104.1272295639391; Mon, 26 Apr 2010 08:27:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.22.10 with HTTP; Mon, 26 Apr 2010 08:26:59 -0700 (PDT) In-Reply-To: References: <1272086172.240411278@192.168.2.227> From: Jonathan Ellis Date: Mon, 26 Apr 2010 10:26:59 -0500 Message-ID: Subject: Re: org.apache.cassandra.dht.OrderPreservingPartitioner Initial Token To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org this is what IPartitioner does On Mon, Apr 26, 2010 at 10:16 AM, Schubert Zhang wrote: > Hi Jonathan Ellis and Stu Hood, > > I think, finally, we should provide a user customizable key abstract clas= s. > User can define what types of key and its class, which define how to comp= are > keys. > > Schubert > > On Sat, Apr 24, 2010 at 1:16 PM, Stu Hood wrote: >> >> Your keys cannot be an encoded as binary for OPP, since Cassandra will >> attempt to decode them as UTF-8, meaning that they may not come back in = the >> same format. >> >> 0.7 supports byte keys using the ByteOrderedPartitioner, and tokens are >> specified using hex. >> >> -----Original Message----- >> From: "Mark Jones" >> Sent: Friday, April 23, 2010 10:55am >> To: "user@cassandra.apache.org" >> Subject: RE: org.apache.cassandra.dht.OrderPreservingPartitioner Initial >> Token >> >> So if my keys are binary, is there any way to escape the keysequence in? >> >> I have 20 bytes (any value 0x0-0xff is possible) as the key. >> >> Are they compared as an array of bytes? =A0So that I can use truncation? >> >> 4 nodes, broken up by 0x00, 0x40, 0x80, 0xC0? >> >> >> -----Original Message----- >> From: Jonathan Ellis [mailto:jbellis@gmail.com] >> Sent: Friday, April 23, 2010 10:22 AM >> To: user@cassandra.apache.org >> Subject: Re: org.apache.cassandra.dht.OrderPreservingPartitioner Initial >> Token >> >> a normal String from the same universe as your keys. >> >> On Fri, Apr 23, 2010 at 7:23 AM, Mark Jones wrote= : >> > How is this specified? >> > >> > Is it a large hex #? >> > >> > A string of bytes in hex? >> > >> > >> > >> > http://wiki.apache.org/cassandra/StorageConfiguration doesn't say. >> >> > >