Re: Range search on keys not working?

2010-06-10 Thread David Boxenhorn
reserving Partitioner. For more information on >>> partitioners, look here: >>> >>> http://wiki.apache.org/cassandra/StorageConfiguration#Partitioner >>> >>> To do key range slices that use both start and finish parameters and >>> retrieve keys i

Re: Range search on keys not working?

2010-06-09 Thread Philip Stanhope
gt;> >> >>> >> >>> Logically, it doesn't make sense to ever specify an end key with >> >>> random partitioner. If you specified a start key of "aaa" and and end >> >>> key of "aac" you might get back as results "

Re: Range search on keys not working?

2010-06-09 Thread Sylvain Lebresne
; To do key range slices that use both start and finish parameters and >>> retrieve keys in-order, you need to use an ordered partitioner - >>> either the built-in OPP or your own custom one. >>> >>> Ben >>> >>> On Tue, Jun 8, 2010 at 10:26 PM, si

Re: Range search on keys not working?

2010-06-09 Thread David Boxenhorn
; >> On Tue, Jun 8, 2010 at 10:26 PM, sina wrote: >> > what's the mean of opp? And How can i make the "start" and "finish" >> useful >> > and make sense? >> > >> > >> > 2010-06-09 >> > >> > 9527 >> &

Re: Range search on keys not working?

2010-06-09 Thread Philip Stanhope
0-06-09 > > ________________ > > 9527 > > > > 发件人: Ben Browning > > 发送时间: 2010-06-02 21:08:57 > > 收件人: user > > 抄送: > > 主题: Re: Range search on keys not working? > > They exist because when using OPP

Re: Re: Range search on keys not working?

2010-06-09 Thread David Boxenhorn
> > 9527 > > ____________ > > 发件人: Ben Browning > > 发送时间: 2010-06-02 21:08:57 > > 收件人: user > > 抄送: > > 主题: Re: Range search on keys not working? > > They exist because when using OPP they are useful and make sense. &g

Re: Re: Range search on keys not working?

2010-06-09 Thread Ben Browning
> > 发件人: Ben Browning > 发送时间: 2010-06-02 21:08:57 > 收件人: user > 抄送: > 主题: Re: Range search on keys not working? > They exist because when using OPP they are useful and make sense. > On Wed, Jun 2, 2010 at 8:59 AM, David Boxenhorn wrote: >

Re: Re: Range search on keys not working?

2010-06-08 Thread sina
what's the mean of opp? And How can i make the "start" and "finish" useful and make sense? 2010-06-09 9527 发件人: Ben Browning 发送时间: 2010-06-02 21:08:57 收件人: user 抄送: 主题: Re: Range search on keys not working? They exist because when using OPP they are usef

Re: Range search on keys not working?

2010-06-02 Thread Jonathan Shook
>> >> ever use a key range with random partitioner is when you want to >> >> iterate over all keys in the CF. >> >> >> >> Ben >> >> >> >> >> >> > But maybe I'm off the track here and someone else here knows

Re: Range search on keys not working?

2010-06-02 Thread David Boxenhorn
ense with order-preserving partitioner. The only time to > >> ever use a key range with random partitioner is when you want to > >> iterate over all keys in the CF. > >> > >> Ben > >> > >> > >> > But maybe I'm off the track here and someone else here knows more > about > >&

Re: Range search on keys not working?

2010-06-02 Thread Sylvain Lebresne
hashing it, and >> >> there is not the same correspondence between 'CATEGORY' and 'CATEGORY/' >> >> as >> >> for >> >> hash('CATEGORY') and hash('CATEGORY/'). >> >> >> >> At least, this

Re: Range search on keys not working?

2010-06-02 Thread Ben Browning
k here and someone else here knows more about >> > this >> > key range stuff. >> > >> > Martin >> > >> > >> > From: David Boxenhorn [mailto:da...@lookin2.com] >> > Sent: Wednesday, June 02, 2010

Re: Range search on keys not working?

2010-06-02 Thread David Boxenhorn
the CF. > > Ben > > > > But maybe I'm off the track here and someone else here knows more about > this > > key range stuff. > > > > Martin > > > > ____________ > > From: David Boxenhorn [mailto:da...@lookin2.com] > > S

Re: Range search on keys not working?

2010-06-02 Thread Ben Browning
ailto:da...@lookin2.com] > Sent: Wednesday, June 02, 2010 2:30 PM > To: user@cassandra.apache.org > Subject: Re: Range search on keys not working? > > In other words, I should check the values as I iterate, and stop iterating > when I get out of range? > > I'll try that! &

Re: Range search on keys not working?

2010-06-02 Thread David Boxenhorn
> returned as the > >> start key for the next call to get_range_slices, and the to drop the > first > >> element from > >> the result. > >> > >> HTH, > >> Martin > >> > >> > >> F

Re: Range search on keys not working?

2010-06-02 Thread David Boxenhorn
Sent:* Wednesday, June 02, 2010 2:30 PM > > *To:* user@cassandra.apache.org > *Subject:* Re: Range search on keys not working? > > In other words, I should check the values as I iterate, and stop > iterating when I get out of range? > > I'll try that! > > On Wed, Jun 2, 2

RE: Range search on keys not working?

2010-06-02 Thread Dr . Martin Grabmüller
2.com] Sent: Wednesday, June 02, 2010 2:30 PM To: user@cassandra.apache.org Subject: Re: Range search on keys not working? In other words, I should check the values as I iterate, and stop iterating when I get out of range? I'l

Re: Range search on keys not working?

2010-06-02 Thread Ben Browning
olution is to iterate through the keys by always using the last key >> returned as the >> start key for the next call to get_range_slices, and the to drop the first >> element from >> the result. >> >> HTH, >>   Martin >> >> >> From: David Boxenhor

Re: Range search on keys not working?

2010-06-02 Thread David Boxenhorn
lways using the last key > returned as the > start key for the next call to get_range_slices, and the to drop the first > element from > the result. > > HTH, > Martin > > -- > *From:* David Boxenhorn [mailto:da...@lookin2.com] > *Sent:*

RE: Range search on keys not working?

2010-06-02 Thread Dr . Martin Grabmüller
PM To: user@cassandra.apache.org Subject: Re: Range search on keys not working? The previous thread where we discussed this is called, "key is sorted?" On Wed, Jun 2, 2010 at 2:56 PM, David Boxenhorn wrote:

Re: Range search on keys not working?

2010-06-02 Thread David Boxenhorn
The previous thread where we discussed this is called, "key is sorted?" On Wed, Jun 2, 2010 at 2:56 PM, David Boxenhorn wrote: > I'm not using OPP. But I was assured on earlier threads (I asked several > times to be sure) that it would work as stated below: the results would not > be ordered, b

Re: Range search on keys not working?

2010-06-02 Thread David Boxenhorn
I'm not using OPP. But I was assured on earlier threads (I asked several times to be sure) that it would work as stated below: the results would not be ordered, but they would be correct. On Wed, Jun 2, 2010 at 2:51 PM, Torsten Curdt wrote: > Sounds like you are not using an order preserving par

Re: Range search on keys not working?

2010-06-02 Thread Torsten Curdt
Sounds like you are not using an order preserving partitioner? On Wed, Jun 2, 2010 at 13:48, David Boxenhorn wrote: > Range search on keys is not working for me. I was assured in earlier threads > that range search would work, but the results would not be ordered. > > I'm trying to get all the ro

Range search on keys not working?

2010-06-02 Thread David Boxenhorn
Range search on keys is not working for me. I was assured in earlier threads that range search would work, but the results would not be ordered. I'm trying to get all the rows that start with "CATEGORY." I'm doing: String start = "CATEGORY."; . . . keyspace.getSuperRangeSlice(columnParent, slice