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

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

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

A copy of the inode file attributes


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes
INodeFileAttributes.SnapshotCopy
 
Constructor Summary
INodeFileAttributes.SnapshotCopy(byte[] name, org.apache.hadoop.fs.permission.PermissionStatus permissions, org.apache.hadoop.hdfs.server.namenode.AclFeature aclFeature, long modificationTime, long accessTime, short replication, long preferredBlockSize)
           
INodeFileAttributes.SnapshotCopy(org.apache.hadoop.hdfs.server.namenode.INodeFile file)
           
 
Method Summary
 short getFileReplication()
           
 long getHeaderLong()
           
 long getPreferredBlockSize()
           
 
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.INodeAttributes.SnapshotCopy
getAccessTime, getAclFeature, getFsPermission, getFsPermissionShort, getGroupName, getLocalNameBytes, getModificationTime, getPermissionLong, getUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
getAccessTime, getAclFeature, getFsPermission, getFsPermissionShort, getGroupName, getLocalNameBytes, getModificationTime, getPermissionLong, getUserName
 

Constructor Detail

INodeFileAttributes.SnapshotCopy

public INodeFileAttributes.SnapshotCopy(byte[] name,
                                        org.apache.hadoop.fs.permission.PermissionStatus permissions,
                                        org.apache.hadoop.hdfs.server.namenode.AclFeature aclFeature,
                                        long modificationTime,
                                        long accessTime,
                                        short replication,
                                        long preferredBlockSize)

INodeFileAttributes.SnapshotCopy

public INodeFileAttributes.SnapshotCopy(org.apache.hadoop.hdfs.server.namenode.INodeFile file)
Method Detail

getFileReplication

public short getFileReplication()
Specified by:
getFileReplication in interface org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes
Returns:
the file replication.

getPreferredBlockSize

public long getPreferredBlockSize()
Specified by:
getPreferredBlockSize in interface org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes
Returns:
preferred block size in bytes

getHeaderLong

public long getHeaderLong()
Specified by:
getHeaderLong in interface org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes
Returns:
the header as a long.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.