You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Lars Hofhansl (Updated) (JIRA)" <ji...@apache.org> on 2012/03/22 17:52:22 UTC

[jira] [Updated] (HBASE-3577) enables Thrift client to get the Region location

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

Lars Hofhansl updated HBASE-3577:
---------------------------------

    Fix Version/s:     (was: 0.92.2)
                       (was: 0.94.0)
                   0.96.0

Moving to 0.96.
                
> enables Thrift client to get the Region location
> ------------------------------------------------
>
>                 Key: HBASE-3577
>                 URL: https://issues.apache.org/jira/browse/HBASE-3577
>             Project: HBase
>          Issue Type: Improvement
>          Components: thrift
>            Reporter: Kazuki Ohta
>             Fix For: 0.96.0
>
>         Attachments: HBASE3577-1.patch, HBASE3577-2.patch
>
>
> The current thrift interface has the getTableRegions() interface like below.
> {code}
>   list<TRegionInfo> getTableRegions(
>     /** table name */
>     1:Text tableName)
>     throws (1:IOError io)
> {code}
> {code}
> struct TRegionInfo {
>   1:Text startKey,
>   2:Text endKey,
>   3:i64 id,
>   4:Text name,
>   5:byte version
> }
> {code}
> But the method don't have the region location information (where the region is located).
> I want to add the Thrift interfaces like below in HTable.java.
> {code}
> public Map<HRegionInfo, HServerAddress> getRegionsInfo() throws IOException
> {code}
> {code}
> public HRegionLocation getRegionLocation(final String row)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira