Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
The current thrift interface has the getTableRegions() interface like below.
list<TRegionInfo> getTableRegions( /** table name */ 1:Text tableName) throws (1:IOError io)
struct TRegionInfo {
1:Text startKey,
2:Text endKey,
3:i64 id,
4:Text name,
5:byte version
}
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.
public Map<HRegionInfo, HServerAddress> getRegionsInfo() throws IOException
public HRegionLocation getRegionLocation(final String row)