[ 
https://issues.apache.org/jira/browse/HBASE-3577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999854#comment-12999854
 ] 

ryan rawson commented on HBASE-3577:
------------------------------------

in a different jira stack is deprecating HServerAddress since it does little 
more than wrap InetSocketAddress (in an unhelpful way to boot!).  Given that 
move, do you think we could replace TSocketAddress with perhaps just 
String/Text?  "foo:100" is pretty standard and seems acceptable to me?

> 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
>         Attachments: HBASE3577-1.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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to