public static class HDFSBlocksDistribution.HostAndWeight.WeightComparator extends Object implements Comparator<HDFSBlocksDistribution.HostAndWeight>
Constructor and Description |
---|
WeightComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(HDFSBlocksDistribution.HostAndWeight l,
HDFSBlocksDistribution.HostAndWeight r) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(HDFSBlocksDistribution.HostAndWeight l, HDFSBlocksDistribution.HostAndWeight r)
compare
in interface Comparator<HDFSBlocksDistribution.HostAndWeight>