@Private @Evolving public class LocatedStripedBlock extends LocatedBlock
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 | Description |
|---|---|
LocatedStripedBlock(ExtendedBlock b,
DatanodeInfo[] locs,
java.lang.String[] storageIDs,
org.apache.hadoop.fs.StorageType[] storageTypes,
byte[] indices,
long startOffset,
boolean corrupt,
DatanodeInfo[] cachedLocs) |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
getBlockIndices() |
|
org.apache.hadoop.security.token.Token<BlockTokenIdentifier>[] |
getBlockTokens() |
|
BlockType |
getBlockType() |
|
boolean |
isStriped() |
|
void |
setBlockIndices(byte[] blockIndices) |
|
void |
setBlockTokens(org.apache.hadoop.security.token.Token<BlockTokenIdentifier>[] tokens) |
|
java.lang.String |
toString() |
addCachedLoc, getBlock, getBlockSize, getBlockToken, getCachedLocations, getLocations, getStartOffset, getStorageIDs, getStorageTypes, isCorrupt, moveProvidedToEnd, setBlockToken, setCorrupt, setStartOffset, updateCachedStorageInfopublic LocatedStripedBlock(ExtendedBlock b, DatanodeInfo[] locs, java.lang.String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes, byte[] indices, long startOffset, boolean corrupt, DatanodeInfo[] cachedLocs)
public java.lang.String toString()
toString in class LocatedBlockpublic byte[] getBlockIndices()
public void setBlockIndices(byte[] blockIndices)
public boolean isStriped()
isStriped in class LocatedBlockpublic BlockType getBlockType()
getBlockType in class LocatedBlockpublic org.apache.hadoop.security.token.Token<BlockTokenIdentifier>[] getBlockTokens()
public void setBlockTokens(org.apache.hadoop.security.token.Token<BlockTokenIdentifier>[] tokens)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.