Class Dispatcher.DBlockStriped
java.lang.Object
org.apache.hadoop.hdfs.server.balancer.MovedBlocks.Locations<Dispatcher.DDatanode.StorageGroup>
org.apache.hadoop.hdfs.server.balancer.Dispatcher.DBlock
org.apache.hadoop.hdfs.server.balancer.Dispatcher.DBlockStriped
- Enclosing class:
- Dispatcher
-
Field Summary
Fields inherited from class org.apache.hadoop.hdfs.server.balancer.MovedBlocks.Locations
locations -
Constructor Summary
ConstructorsConstructorDescriptionDBlockStriped(org.apache.hadoop.hdfs.protocol.Block block, byte[] indices, short dataBlockNum, int cellSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustIndices(List<Integer> adjustList) Adjust EC block indices,it will remove the element of adjustList from indices.byte[]longvoidsetIndices(byte[] indices) Methods inherited from class org.apache.hadoop.hdfs.server.balancer.MovedBlocks.Locations
addLocation, clearLocations, getBlock, getLocations, getNumBytes, isLocatedOn, toString
-
Constructor Details
-
DBlockStriped
public DBlockStriped(org.apache.hadoop.hdfs.protocol.Block block, byte[] indices, short dataBlockNum, int cellSize)
-
-
Method Details
-
getNumBytes
- Overrides:
getNumBytesin classDispatcher.DBlock
-
setIndices
public void setIndices(byte[] indices) -
getIndices
public byte[] getIndices() -
adjustIndices
Adjust EC block indices,it will remove the element of adjustList from indices.- Parameters:
adjustList- the list will be removed from indices
-