public abstract class INode extends Object implements Comparable<byte[]>, org.apache.hadoop.hdfs.server.namenode.FSInodeInfo
Modifier and Type | Field and Description |
---|---|
protected long |
accessTime |
protected long |
modificationTime |
protected byte[] |
name |
protected org.apache.hadoop.hdfs.server.namenode.INodeDirectory |
parent |
Modifier | Constructor and Description |
---|---|
protected |
INode() |
protected |
INode(String name,
org.apache.hadoop.fs.permission.PermissionStatus permissions) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(byte[] o) |
org.apache.hadoop.fs.ContentSummary |
computeAndConvertContentSummary(org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext summary)
Compute
ContentSummary |
org.apache.hadoop.fs.ContentSummary |
computeContentSummary()
Compute
ContentSummary . |
boolean |
equals(Object o) |
long |
getAccessTime()
Get access time of inode.
|
org.apache.hadoop.fs.permission.FsPermission |
getFsPermission()
Get the
FsPermission |
protected short |
getFsPermissionShort() |
String |
getFullPathName()
a string representation of an inode
|
String |
getGroupName()
Get group name
|
long |
getModificationTime()
Get last modification time of inode.
|
protected org.apache.hadoop.fs.permission.PermissionStatus |
getPermissionStatus()
Get the
PermissionStatus |
String |
getUserName()
Get user name
|
int |
hashCode() |
abstract boolean |
isDirectory()
Check whether it's a directory
|
boolean |
isLink()
Check whether it's a symlink
|
boolean |
isUnderConstruction()
Is this inode being constructed?
|
protected void |
setGroup(String group)
Set group
|
protected void |
setPermission(org.apache.hadoop.fs.permission.FsPermission permission)
Set the
FsPermission of this INode |
protected void |
setPermissionStatus(org.apache.hadoop.fs.permission.PermissionStatus ps)
Set the
PermissionStatus |
protected void |
setUser(String user)
Set user
|
String |
toString() |
protected byte[] name
protected org.apache.hadoop.hdfs.server.namenode.INodeDirectory parent
protected long modificationTime
protected long accessTime
protected INode()
protected void setPermissionStatus(org.apache.hadoop.fs.permission.PermissionStatus ps)
PermissionStatus
protected org.apache.hadoop.fs.permission.PermissionStatus getPermissionStatus()
PermissionStatus
public String getUserName()
public String getGroupName()
public org.apache.hadoop.fs.permission.FsPermission getFsPermission()
FsPermission
protected short getFsPermissionShort()
protected void setPermission(org.apache.hadoop.fs.permission.FsPermission permission)
FsPermission
of this INode
public abstract boolean isDirectory()
public final org.apache.hadoop.fs.ContentSummary computeContentSummary()
ContentSummary
. Blocking computation.public final org.apache.hadoop.fs.ContentSummary computeAndConvertContentSummary(org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext summary)
ContentSummary
public String getFullPathName()
getFullPathName
in interface org.apache.hadoop.hdfs.server.namenode.FSInodeInfo
public long getModificationTime()
public long getAccessTime()
public boolean isUnderConstruction()
public boolean isLink()
public int compareTo(byte[] o)
compareTo
in interface Comparable<byte[]>
Copyright © 2013 Apache Software Foundation. All Rights Reserved.