[
https://issues.apache.org/jira/browse/HBASE-7826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13576313#comment-13576313
]
Shivendra Pratap Singh commented on HBASE-7826:
-----------------------------------------------
Proposed solution:
Add a new type (a struct) called TColumn to the Hbase thrift specification
file.
TColumn has two members viz. row and TCell. TCell is the usual TCell that
exists. Instead of storing columns in a TreeMap we store TColumn type instances
in an ArrayList. This guarantees that the sort order is maintained all the way
through when it passes from Hbase RS to thrift Hbase client.
> Improve Hbase Thrift v1 to return results in sorted order
> ---------------------------------------------------------
>
> Key: HBASE-7826
> URL: https://issues.apache.org/jira/browse/HBASE-7826
> Project: HBase
> Issue Type: New Feature
> Components: Thrift
> Affects Versions: 0.94.0
> Reporter: Shivendra Pratap Singh
> Priority: Minor
> Labels: Hbase, Thrift
>
> Hbase natively stores columns sorted based on the column qualifier. A scan is
> guaranteed to return sorted columns. The Java API works fine but the Thrift
> API is broken. Hbase uses TreeMap that ensures that sort order is maintained.
> However Hbase thrift specification uses a simple Map to store the data. A
> map, since it is unordered doesn't result in columns being returned in a sort
> order that is consistent with their storage in Hbase.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira