Hi,
Since you're iterating the whole set with several records a time, your
code should know when it's first time.
Why just simply
if(!_first_time){
_iter++; //to ignore the first record?
}else{
_first_time=false;
}
Kevin Yuan,
Supertool Corp.
www.yuan-shuai.info
On 2010?06?10? 22:03, Dop Sun wrote:
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/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