Dispatcher.DBlockpublic static class MovedBlocks.Locations<L>
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<L> |
locations |
The locations of the replicas of the block.
|
| Constructor | Description |
|---|---|
Locations(org.apache.hadoop.hdfs.protocol.Block block) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addLocation(L loc) |
add a location
|
void |
clearLocations() |
clean block locations
|
org.apache.hadoop.hdfs.protocol.Block |
getBlock() |
|
java.util.List<L> |
getLocations() |
|
long |
getNumBytes() |
|
boolean |
isLocatedOn(L loc) |
|
java.lang.String |
toString() |
protected final java.util.List<L> locations
public void clearLocations()
public void addLocation(L loc)
public boolean isLocatedOn(L loc)
public java.util.List<L> getLocations()
public org.apache.hadoop.hdfs.protocol.Block getBlock()
public long getNumBytes()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.