You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by zangds <za...@ihep.ac.cn> on 2010/11/05 14:53:00 UTC

how does get_range_slices work?

Hi,
I have a question about the get_range_slices() function about the key sorting.
I inserted some colums with keys of '1', '2' ,'7' and '10'.
When I use get_range_slices to get colums betwen '1' and '10' , I got none.
But When I get colums betwen '10' and '1', I got '10', '2' and '1'.

Can anybody tell me why?
Thanks!
2010-11-05 



zangds 

Re: RE: how does get_range_slices work?

Posted by zangds <za...@ihep.ac.cn>.
No,It's not the columns, but the rows.
These are the keys of the rows.

------------------				 
zangds
2010-11-05

-------------------------------------------------------------
发件人:Stu Hood
发送日期:2010-11-05 17:07:43
收件人:user
抄送:
主题:RE: how does get_range_slices work?

What column comparator/type are you using? Remember that if you are using BytesType/UTF8Type, columns will be sorted lexicographically. 


-----Original Message-----
From: "zangds" <za...@ihep.ac.cn>
Sent: Friday, November 5, 2010 8:53am
To: "user" <us...@cassandra.apache.org>
Subject: how does get_range_slices work?

Hi,
I have a question about the get_range_slices() function about the key sorting.
I inserted some colums with keys of '1', '2' ,'7' and '10'.
When I use get_range_slices to get colums betwen '1' and '10' , I got none.
But When I get colums betwen '10' and '1', I got '10', '2' and '1'.

Can anybody tell me why?
Thanks!
2010-11-05 



zangds 


RE: how does get_range_slices work?

Posted by Stu Hood <st...@rackspace.com>.
What column comparator/type are you using? Remember that if you are using BytesType/UTF8Type, columns will be sorted lexicographically. 


-----Original Message-----
From: "zangds" <za...@ihep.ac.cn>
Sent: Friday, November 5, 2010 8:53am
To: "user" <us...@cassandra.apache.org>
Subject: how does get_range_slices work?

Hi,
I have a question about the get_range_slices() function about the key sorting.
I inserted some colums with keys of '1', '2' ,'7' and '10'.
When I use get_range_slices to get colums betwen '1' and '10' , I got none.
But When I get colums betwen '10' and '1', I got '10', '2' and '1'.

Can anybody tell me why?
Thanks!
2010-11-05 



zangds