Re: Is it possible to get list of row keys?

2011-03-02 Thread Eric Charles
Hi, I'm also facing the need to retrieve all row keys. What do you mean with stable order? From this thread, I understand paging method with RandomPartitioner will return all keys (shuffled, but missing key, no double key). This seems to have already told, but I prefer to double-check... Tks,

Re: Is it possible to get list of row keys?

2011-03-02 Thread Ching-Cheng Chen
Stable order mean the keys will return in some kind of ordering (not alphanumeric, not numeric,), just in certain order. For example, if you use setKeys(,) as first batch call and you got following result. keyabc key456 keydsg key8jkg keyag87 key45s ... Then if you call with setKeys(keydsg,)

Re: Is it possible to get list of row keys?

2011-02-23 Thread Ching-Cheng Chen
that is stored inside cassandra, how would it be possible to get list of row keys? This list of row keys is going to be used to get a range of slices. Thank you for your help. -- http://twitter.com/jpartogi -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani

Re: Is it possible to get list of row keys?

2011-02-23 Thread Sasha Dolgy
What if i want 20 rows and the next 20 rows in a subsequent query? can this only be achieved with OPP? -- Sasha Dolgy sasha.do...@gmail.com On 23 Feb 2011 13:54, Ching-Cheng Chen cc...@evidentsoftware.com wrote:

Re: Is it possible to get list of row keys?

2011-02-23 Thread Norman Maurer
query per ranges is only possible with OPP or BPP. Bye, Norman 2011/2/23 Sasha Dolgy sdo...@gmail.com: What if i want 20 rows and the next 20 rows in a subsequent query?  can this only be achieved with OPP? -- Sasha Dolgy sasha.do...@gmail.com On 23 Feb 2011 13:54, Ching-Cheng Chen

Re: Is it possible to get list of row keys?

2011-02-23 Thread Ching-Cheng Chen
Actually, if you want to get ALL keys, I believe you can still use RangeSliceQuery with RP. Just use setKeys(,) as first batch call. Then use the last key from previous batch as startKey for next batch. Beware that since startKey is inclusive, so you'd need to ignore first key from now on. Keep

Re: Is it possible to get list of row keys?

2011-02-23 Thread Roshan Dawrani
On Wed, Feb 23, 2011 at 7:17 PM, Ching-Cheng Chen cc...@evidentsoftware.com wrote: Actually, if you want to get ALL keys, I believe you can still use RangeSliceQuery with RP. Just use setKeys(,) as first batch call. Then use the last key from previous batch as startKey for next batch.

Re: Is it possible to get list of row keys?

2011-02-23 Thread Norman Maurer
yes but be aware that the keys will not in the right order. Bye, Norman 2011/2/23 Roshan Dawrani roshandawr...@gmail.com: On Wed, Feb 23, 2011 at 7:17 PM, Ching-Cheng Chen cc...@evidentsoftware.com wrote: Actually, if you want to get ALL keys, I believe you can still use RangeSliceQuery

Re: Is it possible to get list of row keys?

2011-02-23 Thread Roshan Dawrani
Yes. But I don't think the retrieving keys in the right order was part of the original question. :-) On Wed, Feb 23, 2011 at 7:50 PM, Norman Maurer nor...@apache.org wrote: yes but be aware that the keys will not in the right order. Bye, Norman 2011/2/23 Roshan Dawrani

Re: Is it possible to get list of row keys?

2011-02-23 Thread Daniel Lundin
They are, however, in *stable* order, which is important. On Wed, Feb 23, 2011 at 3:20 PM, Norman Maurer nor...@apache.org wrote: yes but be aware that the keys will not in the right order. Bye, Norman 2011/2/23 Roshan Dawrani roshandawr...@gmail.com: On Wed, Feb 23, 2011 at 7:17 PM,

Re: Is it possible to get list of row keys?

2011-02-23 Thread Joshua Partogi
Hi everyone, Thank you to everyone that have responded to my email. I really appreciate that. I am sorry for not making it clear in my original post that what I am looking for is the list of keys in the database assuming that the client application does not know the keys. From what I understand,

Re: Is it possible to get list of row keys?

2011-02-23 Thread Roshan Dawrani
On Thu, Feb 24, 2011 at 6:54 AM, Joshua Partogi joshua.j...@gmail.comwrote: I am sorry for not making it clear in my original post that what I am looking for is the list of keys in the database assuming that the client application does not know the keys. From what I understand,

Re: Is it possible to get list of row keys?

2011-02-23 Thread Joshua Partogi
Thanks Roshan, I think I understand now. The setRowCount() is in the Java Cassandra driver. I'll try to find the similar method in the Ruby API. Kind regards, Joshua On Thu, Feb 24, 2011 at 1:04 PM, Roshan Dawrani roshandawr...@gmail.com wrote: On Thu, Feb 24, 2011 at 6:54 AM, Joshua Partogi

Is it possible to get list of row keys?

2011-02-22 Thread Joshua Partogi
Hi, Assuming the application does not know the list of keys that is stored inside cassandra, how would it be possible to get list of row keys? This list of row keys is going to be used to get a range of slices. Thank you for your help. -- http://twitter.com/jpartogi

Re: Is it possible to get list of row keys?

2011-02-22 Thread Roshan Dawrani
the keys. On Wed, Feb 23, 2011 at 12:41 PM, Joshua Partogi joshua.j...@gmail.comwrote: Hi, Assuming the application does not know the list of keys that is stored inside cassandra, how would it be possible to get list of row keys? This list of row keys is going to be used to get a range