Package org.apache.hadoop.hdfs.protocol
Class LocatedStripedBlock
java.lang.Object
org.apache.hadoop.hdfs.protocol.LocatedBlock
org.apache.hadoop.hdfs.protocol.LocatedStripedBlock
LocatedBlock with striped block support. For a striped block, each
datanode storage is associated with a block in the block group. We need to
record the index (in the striped block group) for each of them.-
Constructor Summary
ConstructorsConstructorDescriptionLocatedStripedBlock(ExtendedBlock b, DatanodeInfo[] locs, String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes, byte[] indices, long startOffset, boolean corrupt, DatanodeInfo[] cachedLocs) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]org.apache.hadoop.security.token.Token<BlockTokenIdentifier>[]booleanvoidsetBlockIndices(byte[] blockIndices) voidsetBlockTokens(org.apache.hadoop.security.token.Token<BlockTokenIdentifier>[] tokens) toString()Methods inherited from class org.apache.hadoop.hdfs.protocol.LocatedBlock
addCachedLoc, getBlock, getBlockSize, getBlockToken, getCachedLocations, getLocations, getStartOffset, getStorageIDs, getStorageTypes, isCorrupt, moveProvidedToEnd, setBlockToken, setCorrupt, setStartOffset, updateCachedStorageInfo
-
Constructor Details
-
LocatedStripedBlock
public LocatedStripedBlock(ExtendedBlock b, DatanodeInfo[] locs, String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes, byte[] indices, long startOffset, boolean corrupt, DatanodeInfo[] cachedLocs)
-
-
Method Details
-
toString
- Overrides:
toStringin classLocatedBlock
-
getBlockIndices
public byte[] getBlockIndices() -
setBlockIndices
public void setBlockIndices(byte[] blockIndices) -
isStriped
public boolean isStriped()- Overrides:
isStripedin classLocatedBlock
-
getBlockType
- Overrides:
getBlockTypein classLocatedBlock
-
getBlockTokens
-
setBlockTokens
-