hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Daniel Cryans (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-7826) Improve Hbase Thrift v1 to return results in sorted order
Date Mon, 29 Jul 2013 23:35:50 GMT

     [ https://issues.apache.org/jira/browse/HBASE-7826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Daniel Cryans updated HBASE-7826:
--------------------------------------

      Resolution: Fixed
    Release Note: 
When passing a TScan object, it's possible to ask for sortColumns. The result of doing this
will populate TRowResult's "sortedColumns" instead of "columns", where the former is a list
of the new type TColumn that wraps a column name and a TCell. 
Backward compatibility is kept. Old clients will work against thrift servers with this patch,
but new clients cannot request sorted columns on an old thrift server.
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)

Committed to 0.94, 0.95 and trunk.
                
> 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
>            Assignee: Shivendra Pratap Singh
>            Priority: Minor
>              Labels: Hbase, Thrift
>         Attachments: 7826-v6.patch, HBASE-7826-0.94-v7.patch, hbase_7826.patch, hbase_7826.patch,
HBASE-7826.patch, hbase_7826_sortcolumnFlag.1.patch, hbase_7826_sortcolumnFlag.2.patch, hbase_7826_sortcolumnFlag.3.patch,
hbase_7826_sortcolumnFlag.4.patch, hbase_7826_sortcolumnFlag.5.patch, hbase_7826_sortcolumnFlag.patch,
hbase_7826_trunk.patch
>
>
> 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

Mime
View raw message