Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 31379 invoked from network); 12 Aug 2009 03:37:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 03:37:27 -0000 Received: (qmail 58716 invoked by uid 500); 12 Aug 2009 03:37:34 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 58666 invoked by uid 500); 12 Aug 2009 03:37:34 -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 58652 invoked by uid 99); 12 Aug 2009 03:37:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 03:37:34 +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 langram@gmail.com designates 209.85.200.173 as permitted sender) Received: from [209.85.200.173] (HELO wf-out-1314.google.com) (209.85.200.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 03:37:21 +0000 Received: by wf-out-1314.google.com with SMTP id 28so1552608wfa.21 for ; Tue, 11 Aug 2009 20:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=5JclENyp/MJoi112fY3TPATD0WNT0jlwmMLDI+kBQto=; b=Udv5e0wSuu71edFzS9ybR+9W3X3S1hN5rdkqQgJXcmDCEWRMCok62/4AsADBmIBtjt HGEtUSCVaQrl3gvRUIQa8MIYtDFTQLEHPlPJiJquyqucgrqJt+y/NRK+vD+b0Z7AQ6Bc /+TgrGiNC3iwpjbJUsjoEyG/fZ/j2s9TAhh04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pwixAVQvfrnu5PfUDQkCZtNzRbUgtigN463BGoYgXvLJEbwoSIDD42VrY45VZIQ6vW XEjZxAFNvu0qFu9LejBJ10fk/B+AHx35l+A4J72RG9yc+h5wEewhE7ijhElj/jPmPaqR 2hx/myP25NFrtyE73tdI6dgrx+5jcWq73dEpY= MIME-Version: 1.0 Received: by 10.142.54.11 with SMTP id c11mr1491236wfa.194.1250048220665; Tue, 11 Aug 2009 20:37:00 -0700 (PDT) Date: Wed, 12 Aug 2009 11:37:00 +0800 Message-ID: <3bb1d9610908112037v17b852ev9dc0b8798969061a@mail.gmail.com> Subject: New thrift api question. From: Tangram Liu To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=001636e0abbe25197d0470e988fc X-Virus-Checked: Checked by ClamAV on apache.org --001636e0abbe25197d0470e988fc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, there! I'm new to cassandra. and I think it fascinating. I got a question here: image a simple blog host app base on cassandra with the following data model: ** for each new blog article, insert with blog name as the key, article title as the column name and article content as value. here is the question: how can i build a blog paginator with new api? with old api, i can simple use get_slice to get what i want(start=page offset, count= row per page). but new api, however, change the start parameter type from int to string. how can i build a paginate function with new api? --001636e0abbe25197d0470e988fc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, there! I'm new to cassandra. and I think it fascinating.

I = got a question here:

image a simple blog host app base on cassandra = with the following data model:

<Keyspaces>
=A0=A0=A0 <Keyspace Name=3D"MultiBlog">= ;
=A0=A0=A0=A0=A0=A0=A0 <ColumnFamily CompareWith=3D"TimeUUIDTyp= e" Name=3D"Blogs">
=A0=A0=A0 </Keyspace>
=A0&= lt;/Keyspaces>

for each new blog article, insert with blog name a= s the key, article title as the column name and article content as value.
here is the question: how can i build a blog paginator with new api?
with old api, i can simple use get_slice to get what i want(start=3Dpage offset, count=3D row per page). but new api, however, change the start parameter type from int to string. how can i build a paginate function with new api? --001636e0abbe25197d0470e988fc--