Class RegionInfoComparator
java.lang.Object
org.apache.hadoop.hbase.master.balancer.RegionInfoComparator
- All Implemented Interfaces:
Comparator<RegionInfo>
The following comparator assumes that RegionId from HRegionInfo can represent the age of the
region - larger RegionId means the region is younger. This comparator is used in balanceCluster()
to account for the out-of-band regions which were assigned to the server after some other region
server crashed.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
RegionInfoComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<RegionInfo>
-