public static class MovedBlocks.Locations<L> extends Object
Modifier and Type | Field and Description |
---|---|
protected List<L> |
locations
The locations of the replicas of the block.
|
Constructor and Description |
---|
MovedBlocks.Locations(org.apache.hadoop.hdfs.protocol.Block block) |
Modifier and Type | Method and Description |
---|---|
void |
addLocation(L loc)
add a location
|
void |
clearLocations()
clean block locations
|
org.apache.hadoop.hdfs.protocol.Block |
getBlock() |
List<L> |
getLocations() |
long |
getNumBytes() |
boolean |
isLocatedOn(L loc) |
String |
toString() |
public MovedBlocks.Locations(org.apache.hadoop.hdfs.protocol.Block block)
public void clearLocations()
public void addLocation(L loc)
public boolean isLocatedOn(L loc)
public org.apache.hadoop.hdfs.protocol.Block getBlock()
public long getNumBytes()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.