Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 56075 invoked from network); 10 Jun 2010 14:04:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jun 2010 14:04:07 -0000 Received: (qmail 917 invoked by uid 500); 10 Jun 2010 14:04:06 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 877 invoked by uid 500); 10 Jun 2010 14:04:06 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 866 invoked by uid 99); 10 Jun 2010 14:04:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 14:04:06 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [218.102.48.210] (HELO imsm057dat.netvigator.com) (218.102.48.210) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 14:03:57 +0000 Received: from X200 ([219.79.109.4]) by imsm057dat.netvigator.com (InterMail vM.7.05.01.01 201-2174-106-103-20060222) with ESMTP id <20100610140332.IBQN1231.imsm057dat.netvigator.com@X200> for ; Thu, 10 Jun 2010 22:03:32 +0800 From: "Dop Sun" To: Subject: keyrange for get_range_slices Date: Thu, 10 Jun 2010 22:03:28 +0800 Message-ID: <021601cb08a5$b43cf170$1cb6d450$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0217_01CB08E8.C2603170" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsIpbIiaeHuwO5gRxSoUtfPMMlSlg== Content-Language: en-us This is a multi-part message in MIME format. ------=_NextPart_000_0217_01CB08E8.C2603170 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, As documented in the http://wiki.apache.org/cassandra/API, the key range for get_range_slices are both inclusive. As discussed in this thread: http://groups.google.com/group/jassandra-user/browse_thread/thread/c2e56453c de067d3, there is a case that user want to discover all keys (huge number) in a column family. What I think is doing batchly: using empty string as start and finish first, then using the last key returned as start and query second. My question is: using this method, the last key returned for the first query, will be returned again in the second query as the first key. And it's a duplication. Is there any other API to discover keys without duplications in current implementation? Thanks, Regards, Dop ------=_NextPart_000_0217_01CB08E8.C2603170 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

As documented in the http://wiki.apache.org/cass= andra/API, the key range for get_range_slices are both inclusive.

 

As discussed in this thread: http://groups.google.com/group/jassandra-user/browse_= thread/thread/c2e56453cde067d3, there is a case that user want to discover all keys (huge number) in a = column family.

 

What I think  is doing batchly: using empty = string as start and finish first, then using the last key returned as start and = query second.

 

My question is: using this method, the last key = returned for the first query, will be returned again in the second query as the first = key. And it’s a duplication. Is there any other API to discover keys = without duplications in current implementation?

 

Thanks,

Regards,

Dop

------=_NextPart_000_0217_01CB08E8.C2603170--