BlockRecoveryCommand.RecoveringStripedBlock@Private
@Evolving
public static class BlockRecoveryCommand.RecoveringBlock
extends org.apache.hadoop.hdfs.protocol.LocatedBlock
| Constructor | Description |
|---|---|
RecoveringBlock(org.apache.hadoop.hdfs.protocol.ExtendedBlock b,
org.apache.hadoop.hdfs.protocol.DatanodeInfo[] locs,
long newGS) |
Create RecoveringBlock.
|
RecoveringBlock(org.apache.hadoop.hdfs.protocol.ExtendedBlock b,
org.apache.hadoop.hdfs.protocol.DatanodeInfo[] locs,
org.apache.hadoop.hdfs.protocol.Block recoveryBlock) |
Create RecoveringBlock with copy-on-truncate option.
|
RecoveringBlock(BlockRecoveryCommand.RecoveringBlock rBlock) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.hdfs.protocol.Block |
getNewBlock() |
Return the new block.
|
long |
getNewGenerationStamp() |
Return the new generation stamp of the block,
which also plays role of the recovery id.
|
addCachedLoc, getBlock, getBlockSize, getBlockToken, getBlockType, getCachedLocations, getLocations, getStartOffset, getStorageIDs, getStorageTypes, isCorrupt, isStriped, moveProvidedToEnd, setBlockToken, setCorrupt, setStartOffset, toString, updateCachedStorageInfopublic RecoveringBlock(org.apache.hadoop.hdfs.protocol.ExtendedBlock b,
org.apache.hadoop.hdfs.protocol.DatanodeInfo[] locs,
long newGS)
public RecoveringBlock(org.apache.hadoop.hdfs.protocol.ExtendedBlock b,
org.apache.hadoop.hdfs.protocol.DatanodeInfo[] locs,
org.apache.hadoop.hdfs.protocol.Block recoveryBlock)
public RecoveringBlock(BlockRecoveryCommand.RecoveringBlock rBlock)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.