org.apache.hadoop.hbase
Class HDFSBlocksDistribution.HostAndWeight.WeightComparator

java.lang.Object
  extended by 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
HDFSBlocksDistribution.HostAndWeight.WeightComparator()
           
 
Method Summary
 int compare(HDFSBlocksDistribution.HostAndWeight l, HDFSBlocksDistribution.HostAndWeight r)
           
 
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
 

Constructor Detail

HDFSBlocksDistribution.HostAndWeight.WeightComparator

public HDFSBlocksDistribution.HostAndWeight.WeightComparator()
Method Detail

compare

public int compare(HDFSBlocksDistribution.HostAndWeight l,
                   HDFSBlocksDistribution.HostAndWeight r)
Specified by:
compare in interface Comparator<HDFSBlocksDistribution.HostAndWeight>


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.