hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Tarnas <...@tarnas.org>
Subject Re: Sorting question
Date Mon, 22 Aug 2011 05:17:07 GMT
HBase doesn't use the localized sorting rules, it sorts on the byte value. Space is ASCII 32,
a value less than the alphanumeric characters. 

-chris

On Aug 21, 2011, at 8:11 PM, Mark <static.void.dev@gmail.com> wrote:

> FYI I am using openScannerWithPrefix thrift api call
> 
> On 8/21/11 6:47 PM, Mark wrote:
>> Why when scanning do I see the following sort order?
>> 
>> "foo  bar"
>> "foo bar"
>> "foo"
>> 
>> I thought that "foo" would be sorted before "foo bar" since this is natural ordering.
Why am I seeing these results?

Mime
View raw message