| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.blockmanagement | |
| org.apache.hadoop.hdfs.server.namenode |
| Modifier and Type | Class and Description |
|---|---|
class |
BlockInfoUnderConstruction
Represents a block that is currently being constructed.
This is usually the last block of a file opened for write or append. |
| Modifier and Type | Method and Description |
|---|---|
BlockInfo |
BlockInfo.listInsert(BlockInfo head,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)
Insert this block into the head of the list of blocks
related to the specified DatanodeDescriptor.
|
BlockInfo |
BlockInfo.listRemove(BlockInfo head,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)
Remove this block from the list of blocks
related to the specified DatanodeDescriptor.
|
BlockInfo |
BlockInfo.moveBlockToHead(BlockInfo head,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn,
int curIndex,
int headIndex)
Remove this block from the list of blocks related to the specified
DatanodeDescriptor.
|
BlockInfo |
DatanodeDescriptor.BlockIterator.next() |
| Modifier and Type | Method and Description |
|---|---|
BlockInfo |
BlockInfo.listInsert(BlockInfo head,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)
Insert this block into the head of the list of blocks
related to the specified DatanodeDescriptor.
|
BlockInfo |
BlockInfo.listRemove(BlockInfo head,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)
Remove this block from the list of blocks
related to the specified DatanodeDescriptor.
|
BlockInfo |
BlockInfo.moveBlockToHead(BlockInfo head,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn,
int curIndex,
int headIndex)
Remove this block from the list of blocks related to the specified
DatanodeDescriptor.
|
| Constructor and Description |
|---|
BlockInfo(BlockInfo from)
Copy construction.
|
| Modifier and Type | Field and Description |
|---|---|
protected BlockInfo[] |
INodeFile.blocks |
| Modifier and Type | Method and Description |
|---|---|
<T extends BlockInfo> |
INodeFile.getLastBlock()
Get the last block of the file.
|
| Modifier and Type | Method and Description |
|---|---|
BlockInfo[] |
INodeFile.getBlocks()
Get file blocks
|
| Modifier and Type | Method and Description |
|---|---|
void |
INodeFile.setBlock(int idx,
BlockInfo blk)
Set file block
|
BlockInfoUnderConstruction |
INodeFileUnderConstruction.setLastBlock(BlockInfo lastBlock,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor[] targets)
Convert the last block of the file to an under-construction block.
|
| Constructor and Description |
|---|
INodeFile(org.apache.hadoop.fs.permission.PermissionStatus permissions,
BlockInfo[] blklist,
short replication,
long modificationTime,
long atime,
long preferredBlockSize) |
Copyright © 2013 Apache Software Foundation. All Rights Reserved.