INodeFile@Private
public interface BlockCollection
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.fs.ContentSummary |
computeContentSummary(BlockStoragePolicySuite bsps) |
Get content summary.
|
void |
convertLastBlockToUC(BlockInfo lastBlock,
DatanodeStorageInfo[] targets) |
Convert the last block of the collection to an under-construction block
and set the locations.
|
BlockInfo[] |
getBlocks() |
Get the blocks (striped or contiguous).
|
long |
getId() |
|
BlockInfo |
getLastBlock() |
Get the last block of the collection.
|
java.lang.String |
getName() |
Get the name of the collection.
|
short |
getPreferredBlockReplication() |
Get block replication for the collection.
|
long |
getPreferredBlockSize() |
Get preferred block size for the collection
|
byte |
getStoragePolicyID() |
|
boolean |
isStriped() |
|
boolean |
isUnderConstruction() |
|
int |
numBlocks() |
|
void |
setBlock(int index,
BlockInfo blk) |
Set the block (contiguous or striped) at the given index.
|
BlockInfo getLastBlock()
org.apache.hadoop.fs.ContentSummary computeContentSummary(BlockStoragePolicySuite bsps) throws org.apache.hadoop.security.AccessControlException
org.apache.hadoop.security.AccessControlExceptionint numBlocks()
BlockInfo[] getBlocks()
long getPreferredBlockSize()
short getPreferredBlockReplication()
byte getStoragePolicyID()
java.lang.String getName()
void setBlock(int index,
BlockInfo blk)
void convertLastBlockToUC(BlockInfo lastBlock, DatanodeStorageInfo[] targets) throws java.io.IOException
java.io.IOExceptionboolean isUnderConstruction()
boolean isStriped()
long getId()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.