Skip to content

Commit

Permalink
use in-order map to store regions info
Browse files Browse the repository at this point in the history
Change-Id: I7cbdaccf8a79227bcac2bdb953e11faf2e6da69b
  • Loading branch information
zhoney committed Dec 23, 2020
1 parent 809feb3 commit c36d768
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private static Map<String, Double> regionSizes(Session session,
private static Map<String, Range> regionRanges(Session session,
String namespace,
String table) {
Map<String, Range> regionRanges = new HashMap<>();
Map<String, Range> regionRanges = InsertionOrderUtil.newMap();
TableName tableName = TableName.valueOf(namespace, table);
try (Admin admin = session.hbase().getAdmin()) {
for (RegionInfo regionInfo : admin.getRegions(tableName)) {
Expand Down

0 comments on commit c36d768

Please sign in to comment.