incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stu Hood" <stu.h...@rackspace.com>
Subject RE: key is sorted?
Date Fri, 07 May 2010 20:17:29 GMT
Your IPartitioner implementation decides how the row keys are sorted: see http://wiki.apache.org/cassandra/StorageConfiguration#Partitioner
. You need to be using one of the OrderPreservingPartitioners if you'd like a reasonable order
for the keys.

-----Original Message-----
From: "AJ Chen" <ajchen@web2express.org>
Sent: Friday, May 7, 2010 3:10pm
To: user@cassandra.apache.org
Subject: key is sorted?

I have a super column family for "topic", key being the name of the topic.
<ColumnFamily Name="Topic" CompareWith="UTF8Type" ColumnType="Super"
CompareSubcolumnsWith="BytesType" />
When I retrieve the rows, the rows are not sorted by the key. Is the row key
sorted in cassandra by default?

-aj
-- 
AJ Chen, PhD
Chair, Semantic Web SIG, sdforum.org
http://web2express.org
twitter @web2express
Palo Alto, CA, USA



Mime
View raw message