Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 75399 invoked from network); 10 Mar 2010 09:28:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Mar 2010 09:28:39 -0000 Received: (qmail 36122 invoked by uid 500); 10 Mar 2010 09:28:10 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 36010 invoked by uid 500); 10 Mar 2010 09:28:09 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 36002 invoked by uid 99); 10 Mar 2010 09:28:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Mar 2010 09:28:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of matteo.caprari@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-ww0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Mar 2010 09:28:01 +0000 Received: by wwb31 with SMTP id 31so3709347wwb.6 for ; Wed, 10 Mar 2010 01:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Ku7zzLHIbYXRgsNCF9Hktuc6xLdves6wCjAzM3T0T1Q=; b=Kw425iVDNaBFRLBn00aCEZEnKJFA/F2SEfip6xkFbgs4PuehxPGD3uhwy5iHv4Vn4l U6jlI6Y8pvXx4/XrecbDOVMqCMGhJYw7JjqWCrITI5zsgzdhHBztYZFNH67ZxWt3tDR4 KVQMtApklLjbqeKy5yVFI5i9Ir+DuDj8DvwYc= 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=mmTQz5+NQ2fYsuq4ZLWPjBnIVOgfxXixBtO8FXN9q7Dz65QFHRoTqR14w4y3jTjQIz 4LHYx1TFbW+sp2Et51Ixguk+vzpp1RCIbPEXh/iJXKbinSljQRxwqkGJl1KxugG5jn4u EdLsS/8NzvrCiHkleVvJqizeRr4lTwfLrwTM0= MIME-Version: 1.0 Received: by 10.216.89.9 with SMTP id b9mr769229wef.61.1268213261146; Wed, 10 Mar 2010 01:27:41 -0800 (PST) In-Reply-To: References: <1bca98391003080418q26ff1616o47ea6c7540a6734b@mail.gmail.com> <1bca98391003090153w2862ae3fy58cd3b85b038905a@mail.gmail.com> <1bca98391003090530n44738312lb1e8488d74233b92@mail.gmail.com> From: Matteo Caprari Date: Wed, 10 Mar 2010 09:27:21 +0000 Message-ID: <1bca98391003100127i2d71d1e4s27b8213cd6d02998@mail.gmail.com> Subject: Re: schema design question To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Well, I don't like clunky and I'm java friendly. I'll go for the abstract c= lass. Thanks for the help. On Tue, Mar 9, 2010 at 7:33 PM, Jonathan Ellis wrote: > On Tue, Mar 9, 2010 at 7:30 AM, Matteo Caprari = wrote: >> On Tue, Mar 9, 2010 at 1:23 PM, Jonathan Ellis wrote= : >>> That's true. =C2=A0So you'd want to use a custom comparator where first= 64 >>> bits is the Long and the rest is the userid, for instance. >>> >>> (Long + something else is common enough that we might want to add it >>> to the defaults...) >> >> What about using a SuperColumn for each like-count and then the list >> of users that hit that level? > > That would also work, it's just a little clunky pulling things out of > a nested structure when really you want a flat list. =C2=A0But if you are > allergic to Java that is the way to go so you don't have to write a > custom AbstractType subclass. :) > > -Jonathan > --=20 :Matteo Caprari matteo.caprari@gmail.com