incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Watanabe Maki <watanabe.m...@gmail.com>
Subject Re: Order rows numerically
Date Fri, 16 Mar 2012 22:49:16 GMT
How about to fill zeros before smaller digits?
Ex. 00000001, 00000002, etc

maki


On 2012/03/17, at 6:29, A J <s5alye@gmail.com> wrote:

> If I define my rowkeys to be Integer
> (key_validation_class=IntegerType) , how can I order the rows
> numerically ?
> ByteOrderedPartitioner orders lexically and retrieval using get_range
> does not seem to make sense in order.
> 
> If I were to change rowkey to be UTF8 (key_validation_class=UTF8Type),
> BOP still does not give numerical enough.
> For range of rowkey from 1 to 2, I get 1, 10,11.....,2 (lexical ordering).
> 
> Any workaround for this ?
> 
> Thanks.

Mime
View raw message