public static class HDFSBlocksDistribution.HostAndWeight extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HDFSBlocksDistribution.HostAndWeight.WeightComparator
comparator used to sort hosts based on weight
|
| 构造器和说明 |
|---|
HostAndWeight(String host,
long weight)
Constructor
|
public HostAndWeight(String host, long weight)
host - the host nameweight - the weightpublic void addWeight(long weight)
weight - the weightpublic String getHost()
public long getWeight()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.