Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 86827 invoked from network); 6 Mar 2010 10:14:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Mar 2010 10:14:21 -0000 Received: (qmail 16475 invoked by uid 500); 6 Mar 2010 10:14:05 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 16392 invoked by uid 500); 6 Mar 2010 10:14:04 -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 16384 invoked by uid 99); 6 Mar 2010 10:14:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 10:14:04 +0000 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=FREEMAIL_FROM,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zjffdu@gmail.com designates 74.125.83.175 as permitted sender) Received: from [74.125.83.175] (HELO mail-pv0-f175.google.com) (74.125.83.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 10:14:02 +0000 Received: by pvf33 with SMTP id 33so1266661pvf.6 for ; Sat, 06 Mar 2010 02:13:42 -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 :date:message-id:subject:from:to:content-type; bh=hXnI2Nx06ExBhGw2hf4gp12H/O7x2OHpNH6C6jSnBbo=; b=GUiqo5izi5zDH7joHQTuA4tEvAQrtKsb5pY/cdweunlKnAQ0qkaHhyzt8zvT/vc01w DPQ0WgWuy4RNg4KnHAvFh5zJM5QEAN26T+NWm5GW4B5LbKgaN7rZ/CoH/L0Eno+d/HLx A+oM7uJ5OfIuhUgLAEth11vbI/pw6Lizs7wb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=E+q06u4S+oMgoRLhbshF5JgCBZoWB/StvGaym3ik8FfP4FAkjU7DnVd6Wde/NFmQu1 kRr/f6zzHqKSMUvfjY3dbY0kvP6WGp/AoSMBFi6dgpSpTw6UURG2xL3QdaM3I/EN1OO7 L/xrsIfg6epqL9va0T/1/N8y2iJ9+ZcjUtkls= MIME-Version: 1.0 Received: by 10.142.75.9 with SMTP id x9mr1427461wfa.318.1267870422657; Sat, 06 Mar 2010 02:13:42 -0800 (PST) In-Reply-To: <1267867906320-4685649.post@n2.nabble.com> References: <1385a5191003060123x6950035ci815e852479d3e516@mail.gmail.com> <1267867906320-4685649.post@n2.nabble.com> Date: Sat, 6 Mar 2010 02:13:42 -0800 Message-ID: <8211a1321003060213y4c5429e9v9672cca7ddb84a9a@mail.gmail.com> Subject: Re: How to model hierarchical structure? From: Jeff Zhang To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016368e21fe29ebba04811f1648 --0016368e21fe29ebba04811f1648 Content-Type: text/plain; charset=UTF-8 use the parent as column family and the child as the column under the column family if this is two-level. And you can use the super-column if there are more than two-levels On Sat, Mar 6, 2010 at 1:31 AM, HubertChang wrote: > > For examples, like tags, many parents to many children. > -- > View this message in context: > http://n2.nabble.com/How-to-model-hierarchical-structure-tp4685633p4685649.html > Sent from the cassandra-user@incubator.apache.org mailing list archive at > Nabble.com. > -- Best Regards Jeff Zhang --0016368e21fe29ebba04811f1648 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable use the parent as column family and the child as the column under the colum= n family if this is two-level.
And you can use the super-column if there= are more than two-levels


=C2=A0

On Sat, Mar 6, 2010 at 1:31 AM, HubertChang <huixiu@gmail.com> wrote:

For examples, like tags, many parents to many children.
--
View this message in context: http://n2.= nabble.com/How-to-model-hierarchical-structure-tp4685633p4685649.html Sent from the cassan= dra-user@incubator.apache.org mailing list archive at Nabble.com.



--
Best Regards
=
Jeff Zhang
--0016368e21fe29ebba04811f1648--