org.apache.hadoop.hdfs.server.namenode
Class INodeFileUnderConstruction
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.INode
org.apache.hadoop.hdfs.server.namenode.INodeFile
org.apache.hadoop.hdfs.server.namenode.INodeFileUnderConstruction
- All Implemented Interfaces:
- Comparable<byte[]>, org.apache.hadoop.hdfs.server.namenode.FSInodeInfo
public class INodeFileUnderConstruction
- extends INodeFile
I-node for file being written.
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.INode |
compareTo, computeContentSummary, equals, getAccessTime, getFsPermission, getFsPermissionShort, getFullPathName, getGroupName, getModificationTime, getPermissionStatus, getUserName, hashCode, isLink, setGroup, setPermissionStatus, setUser, toString |
isUnderConstruction
public boolean isUnderConstruction()
- Is this inode being constructed?
- Overrides:
isUnderConstruction
in class INode
setLastBlock
public BlockInfoUnderConstruction setLastBlock(BlockInfo lastBlock,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor[] targets)
throws IOException
- Convert the last block of the file to an under-construction block.
Set its locations.
- Throws:
IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.