Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 94404 invoked from network); 15 Nov 2009 02:13:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Nov 2009 02:13:22 -0000 Received: (qmail 16532 invoked by uid 500); 15 Nov 2009 02:13:21 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 16506 invoked by uid 500); 15 Nov 2009 02:13:21 -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 16497 invoked by uid 99); 15 Nov 2009 02:13:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 02:13:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of iisbsd@aim.com designates 64.12.207.163 as permitted sender) Received: from [64.12.207.163] (HELO imr-mb02.mx.aol.com) (64.12.207.163) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 02:13:10 +0000 Received: from imo-da01.mx.aol.com (imo-da01.mx.aol.com [205.188.169.199]) by imr-mb02.mx.aol.com (8.14.1/8.14.1) with ESMTP id nAF2CeTv010421 for ; Sat, 14 Nov 2009 21:12:40 -0500 Received: from iisbsd@aim.com by imo-da01.mx.aol.com (mail_out_v42.5.) id u.cf0.68eee521 (34929) for ; Sat, 14 Nov 2009 21:12:36 -0500 (EST) Received: from smtprly-de03.mx.aol.com (smtprly-de03.mx.aol.com [205.188.249.170]) by cia-da04.mx.aol.com (v126.13) with ESMTP id MAILCIADA042-b2524aff6392155; Sat, 14 Nov 2009 21:12:36 -0500 Received: from webmail-d029 (webmail-d029.sim.aol.com [205.188.167.89]) by smtprly-de03.mx.aol.com (v126.13) with ESMTP id MAILSMTPRLYDE036-b2524aff6392155; Sat, 14 Nov 2009 21:12:34 -0500 References: <8CC3309D6AF830E-1DA0-7559@webmail-d029.sysops.aol.com> <7FC4BE368A334142B104A2B72F4435AA045312@iizuusbs.iizuu.local> To: cassandra-user@incubator.apache.org Subject: Re: Can someone provide a PHP sample for super column? Date: Sat, 14 Nov 2009 21:12:34 -0500 X-AOL-IP: 24.5.206.191 In-Reply-To: <7FC4BE368A334142B104A2B72F4435AA045312@iizuusbs.iizuu.local> X-MB-Message-Source: WebUI MIME-Version: 1.0 From: iisbsd@aim.com X-MB-Message-Type: User Content-Type: multipart/alternative; boundary="--------MB_8CC33B03AAE90F3_1DA0_1DD67_webmail-d029.sysops.aol.com" X-Mailer: AIM WebMail 28878-STANDARD Received: from 24.5.206.191 by webmail-d029.sysops.aol.com (205.188.167.89) with HTTP (WebMailUI); Sat, 14 Nov 2009 21:12:34 -0500 Message-Id: <8CC33B03A294383-1DA0-EA23@webmail-d029.sysops.aol.com> X-AOL-SENDER: iisbsd@aim.com X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO ----------MB_8CC33B03AAE90F3_1DA0_1DD67_webmail-d029.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Thanks Chris. Supercolumn may not be needed but since it's part of the API I need to wor= k it out - there is no application yet, I need to know what we can go with= Cassandra so that we can evaluate what we can migrate. I will follow what you mentioned and see how far I can go. =20 -----Original Message----- From: Christopher McKenzie To: cassandra-user@incubator.apache.org Sent: Sat, Nov 14, 2009 4:34 pm Subject: RE: Can someone provide a PHP sample for super column? Sure. But let me encourage you to think about your application. Most one= s I=20 have ran into don't need supercolumns. First you need to specify the column to be of the type super in the=20 storage-conf.xml file. There are a few examples of that. Then when you use the api to construct things called the column paths, you= just=20 need to assign your supercolumn value. It's actually rather straight forward with a decent grasp of the data mode= l. =20 The two most helpful things you can do in php is to print_r the return val= ues=20 and look at the thrift file... can you describe your application? -----Original Message----- From: iisbsd@aim.com [mailto:iisbsd@aim.com] Sent: Fri 11/13/2009 10:21 PM To: cassandra-user@incubator.apache.org Subject: Can someone provide a PHP sample for super column? =20 Newbie to Cassandra, and don't know Java/Ruby/Python too much (can read Ja= va a=20 little), so PHP is my only solution for web. Can someone show me how to write super column in PHP? I searched but seems all PHP samples are for Column, and super column samples are all in Java/Ruby/Python, and I don't know how to map them to PHP APIs. Thanks, =20 =20 ----------MB_8CC33B03AAE90F3_1DA0_1DD67_webmail-d029.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii"
Thanks= Chris.

Supercolumn may not be needed but since it's part of the API I need to wo= rk it out - there is no application yet, I need to know what we can go wi= th Cassandra so that we can evaluate what we can migrate.

I will follow what you mentioned and see how far I can go.

-----Original Message-----
From: Christopher McKenzie <cmckenzie@iizuu.com>
To: cassandra-user@incubator.apache.org
Sent: Sat, Nov 14, 2009 4:34 pm
Subject: RE: Can someone provide a PHP sample for super column?

Sure.  But let me encourage you to thin=
k about your application.  Most ones I 
have ran into don't need supercolumns.

First you need to specify the column to be of the type super in the
storage-conf.xml file.

There are a few examples of that.

Then when you use the api to construct things called the column paths, you= just
need to assign your supercolumn value.

It's actually rather straight forward with a decent grasp of the data mode= l.
The two most helpful things you can do in php is to print_r the return val= ues
and look at the thrift file... can you describe your application?


-----Original Message-----
From: iisbsd@aim.com [mailto:iisbsd@aim.com]
Sent: Fri 11/13/2009 10:21 PM
To: cassandra-user@= incubator.apache.org
Subject: Can someone provide a PHP sample for super column?







Newbie to Cassandra, and don't know Java/Ruby/Python too much (can read Ja= va a
little), so PHP is my only solution for web.



Can someone show me how to write super column in PHP? I searched
but seems all PHP samples are for Column, and super column samples are
all in Java/Ruby/Python, and I don't know how to map them to PHP APIs.



Thanks,






----------MB_8CC33B03AAE90F3_1DA0_1DD67_webmail-d029.sysops.aol.com--