Package org.apache.hadoop.hbase
Class HDFSBlocksDistribution.HostAndWeight.WeightComparator
java.lang.Object
org.apache.hadoop.hbase.HDFSBlocksDistribution.HostAndWeight.WeightComparator
- All Implemented Interfaces:
Comparator<HDFSBlocksDistribution.HostAndWeight>
- Enclosing class:
- HDFSBlocksDistribution.HostAndWeight
public static class HDFSBlocksDistribution.HostAndWeight.WeightComparator
extends Object
implements Comparator<HDFSBlocksDistribution.HostAndWeight>
Comparator used to sort hosts based on weight
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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
-
WeightComparator
public WeightComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<HDFSBlocksDistribution.HostAndWeight>
-