|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.namenode.INode
org.apache.hadoop.hdfs.server.namenode.INodeFile
public class INodeFile
I-node for closed file.
Field Summary | |
---|---|
protected BlockInfo[] |
blocks
|
protected long |
header
|
Fields inherited from class org.apache.hadoop.hdfs.server.namenode.INode |
---|
accessTime, modificationTime, name, parent |
Constructor Summary | |
---|---|
protected |
INodeFile()
|
protected |
INodeFile(org.apache.hadoop.fs.permission.PermissionStatus permissions,
BlockInfo[] blklist,
short replication,
long modificationTime,
long atime,
long preferredBlockSize)
|
Method Summary | ||
---|---|---|
BlockInfo[] |
getBlocks()
Get file blocks |
|
|
getLastBlock()
Get the last block of the file. |
|
long |
getPreferredBlockSize()
Get preferred block size for the file |
|
short |
getReplication()
Get block replication for the file |
|
boolean |
isDirectory()
Check whether it's a directory |
|
int |
numBlocks()
|
|
void |
setBlock(int idx,
BlockInfo blk)
Set file block |
|
protected void |
setPermission(org.apache.hadoop.fs.permission.FsPermission permission)
Set the FsPermission of this INodeFile . |
|
void |
setPreferredBlockSize(long preferredBlkSize)
|
|
void |
setReplication(short replication)
|
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.INode |
---|
compareTo, computeContentSummary, equals, getAccessTime, getFsPermission, getFsPermissionShort, getFullPathName, getGroupName, getModificationTime, getPermissionStatus, getUserName, hashCode, isLink, isUnderConstruction, setGroup, setPermissionStatus, setUser, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long header
protected BlockInfo[] blocks
Constructor Detail |
---|
protected INodeFile()
protected INodeFile(org.apache.hadoop.fs.permission.PermissionStatus permissions, BlockInfo[] blklist, short replication, long modificationTime, long atime, long preferredBlockSize)
Method Detail |
---|
protected void setPermission(org.apache.hadoop.fs.permission.FsPermission permission)
FsPermission
of this INodeFile
.
Since this is a file,
the FsAction.EXECUTE
action, if any, is ignored.
setPermission
in class INode
public boolean isDirectory()
INode
isDirectory
in class INode
public short getReplication()
public void setReplication(short replication)
public long getPreferredBlockSize()
public void setPreferredBlockSize(long preferredBlkSize)
public BlockInfo[] getBlocks()
public void setBlock(int idx, BlockInfo blk)
public <T extends BlockInfo> T getLastBlock() throws IOException
IOException
public int numBlocks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |