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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HDFSBlocksDistribution.HostAndWeight.WeightComparator
public HDFSBlocksDistribution.HostAndWeight.WeightComparator()
compare
public int compare(HDFSBlocksDistribution.HostAndWeight l,
HDFSBlocksDistribution.HostAndWeight r)
- Specified by:
compare
in interface Comparator<HDFSBlocksDistribution.HostAndWeight>
Copyright © 2015 The Apache Software Foundation. All rights reserved.