org.apache.hadoop.hdfs.server.namenode
Class INodeAttributes.SnapshotCopy

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.INodeAttributes.SnapshotCopy
All Implemented Interfaces:
org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Direct Known Subclasses:
INodeDirectoryAttributes.SnapshotCopy, INodeFileAttributes.SnapshotCopy
Enclosing interface:
org.apache.hadoop.hdfs.server.namenode.INodeAttributes

public abstract static class INodeAttributes.SnapshotCopy
extends Object
implements org.apache.hadoop.hdfs.server.namenode.INodeAttributes

A read-only copy of the inode attributes.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
INodeAttributes.SnapshotCopy
 
Method Summary
 long getAccessTime()
           
 org.apache.hadoop.fs.permission.FsPermission getFsPermission()
           
 short getFsPermissionShort()
           
 String getGroupName()
           
 byte[] getLocalNameBytes()
           
 long getModificationTime()
           
 long getPermissionLong()
           
 String getUserName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalNameBytes

public final byte[] getLocalNameBytes()
Specified by:
getLocalNameBytes in interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Returns:
null if the local name is null; otherwise, return the local name byte array.

getUserName

public final String getUserName()
Specified by:
getUserName in interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Returns:
the user name.

getGroupName

public final String getGroupName()
Specified by:
getGroupName in interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Returns:
the group name.

getFsPermission

public final org.apache.hadoop.fs.permission.FsPermission getFsPermission()
Specified by:
getFsPermission in interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Returns:
the permission.

getFsPermissionShort

public final short getFsPermissionShort()
Specified by:
getFsPermissionShort in interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Returns:
the permission as a short.

getPermissionLong

public long getPermissionLong()
Specified by:
getPermissionLong in interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Returns:
the permission information as a long.

getModificationTime

public final long getModificationTime()
Specified by:
getModificationTime in interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Returns:
the modification time.

getAccessTime

public final long getAccessTime()
Specified by:
getAccessTime in interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
Returns:
the access time.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.