From cassandra-user-return-414-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Sat Aug 08 14:28:40 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 79781 invoked from network); 8 Aug 2009 14:28:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Aug 2009 14:28:40 -0000 Received: (qmail 63523 invoked by uid 500); 8 Aug 2009 14:28:47 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 63467 invoked by uid 500); 8 Aug 2009 14:28:47 -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 63458 invoked by uid 99); 8 Aug 2009 14:28:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Aug 2009 14:28:47 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Aug 2009 14:28:34 +0000 Received: by fg-out-1718.google.com with SMTP id d23so580111fga.3 for ; Sat, 08 Aug 2009 07:28:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.86.25.10 with SMTP id 10mr1824587fgy.44.1249741694435; Sat, 08 Aug 2009 07:28:14 -0700 (PDT) In-Reply-To: References: <8969538b0908080633wa705711l1f091154397db223@mail.gmail.com> <8969538b0908080657g53554879r1d8c7d857c89311d@mail.gmail.com> Date: Sat, 8 Aug 2009 16:28:14 +0200 Message-ID: <8969538b0908080728t167f35c5j3b2aa9e873c0c9f@mail.gmail.com> Subject: Re: new thrift API From: =?UTF-8?B?Sm9uYXMgQm9uw6ly?= 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 Got it. Thanks a lot for amazing support on a Sat. :-) 2009/8/8 Jonathan Ellis : > Count is always the max number of results to return. > > So it means, starting with `start`, or the first one if start is > empty, go until you hit `finish` or `count`, whichever comes first. > Empty is not a legal column name so if finish is empty it is ignored > and only count is used. > > We don't offer a numeric offset since that can't be supported > efficiently with a log-structured merge disk format. > > On Sat, Aug 8, 2009 at 8:57 AM, Jonas Bon=C3=A9r wr= ote: >> 2009/8/8 Jonathan Ellis : >>> (either of start and finish may be empty) >> >> Thanks for fast reply. >> >> So count is the offset from either start or finish >> OR >> If start and finish is used then count should be -1 ??? >> >>> >>> On Sat, Aug 8, 2009 at 8:41 AM, Jonathan Ellis wrote= : >>>> Stabilizing but not quite finished (329 and 311 are still waiting for >>>> review). =C2=A0But the fundamentals are the same. >>>> >>>> You have start/finish because that's what defines a range. =C2=A0You h= ave >>>> count because you often want the First N results. >>>> >>>> -Jonathan >>>> >>>> On Sat, Aug 8, 2009 at 8:33 AM, Jonas Bon=C3=A9r wro= te: >>>>> Hey guys. >>>>> >>>>> Is the new API stabilizing? >>>>> >>>>> How is the new range functions suppose to work? >>>>> =C2=A0 =C2=A0public List get_slice_by_names(String keyspace, = String >>>>> key, ColumnParent column_parent, List column_names, int >>>>> consistency_level) throws InvalidRequestException, NotFoundException, >>>>> TException; >>>>> >>>>> =C2=A0 =C2=A0public List get_slice(String keyspace, String ke= y, >>>>> ColumnParent column_parent, byte[] start, byte[] finish, boolean >>>>> is_ascending, int count, int consistency_level) throws >>>>> InvalidRequestException, NotFoundException, TException; >>>>> >>>>> These both have a start, finish and count. I was expecting start and >>>>> offset or only start, finish. >>>>> >>>>> Is the new API documented yet? >>>>> >>>>> Thanks. >>>>> >>>>> -- >>>>> Jonas Bon=C3=A9r >>>>> >>>>> twitter: @jboner >>>>> blog: =C2=A0 =C2=A0http://jonasboner.com >>>>> work: =C2=A0 http://crisp.se >>>>> work: =C2=A0 http://scalablesolutions.se >>>>> code: =C2=A0 http://github.com/jboner >>>>> >>>> >>> >> >> >> >> -- >> Jonas Bon=C3=A9r >> >> twitter: @jboner >> blog: =C2=A0 =C2=A0http://jonasboner.com >> work: =C2=A0 http://crisp.se >> work: =C2=A0 http://scalablesolutions.se >> code: =C2=A0 http://github.com/jboner >> > --=20 Jonas Bon=C3=A9r twitter: @jboner blog: http://jonasboner.com work: http://crisp.se work: http://scalablesolutions.se code: http://github.com/jboner