Class INodeFileAttributes.SnapshotCopy
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.INodeAttributes.SnapshotCopy
org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes.SnapshotCopy
- All Implemented Interfaces:
INodeAttributes,INodeFileAttributes
- Enclosing interface:
- INodeFileAttributes
public static class INodeFileAttributes.SnapshotCopy
extends INodeAttributes.SnapshotCopy
implements INodeFileAttributes
A copy of the inode file attributes
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
INodeAttributes.SnapshotCopyNested classes/interfaces inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes
INodeFileAttributes.SnapshotCopy -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotCopy(byte[] name, org.apache.hadoop.fs.permission.PermissionStatus permissions, AclFeature aclFeature, long modificationTime, long accessTime, Short replication, Byte ecPolicyID, long preferredBlockSize, byte storagePolicyID, XAttrFeature xAttrsFeature, org.apache.hadoop.hdfs.protocol.BlockType blockType) SnapshotCopy(INodeFile file) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.protocol.BlockTypebyteshortlongbytelongbooleanbooleanbooleanMethods inherited from class org.apache.hadoop.hdfs.server.namenode.INodeAttributes.SnapshotCopy
getAccessTime, getAclFeature, getFsPermission, getFsPermissionShort, getGroupName, getLocalNameBytes, getModificationTime, getPermissionLong, getUserName, getXAttrFeatureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
getAccessTime, getAclFeature, getFsPermission, getFsPermissionShort, getGroupName, getLocalNameBytes, getModificationTime, getPermissionLong, getUserName, getXAttrFeature
-
Constructor Details
-
SnapshotCopy
public SnapshotCopy(byte[] name, org.apache.hadoop.fs.permission.PermissionStatus permissions, AclFeature aclFeature, long modificationTime, long accessTime, Short replication, Byte ecPolicyID, long preferredBlockSize, byte storagePolicyID, XAttrFeature xAttrsFeature, org.apache.hadoop.hdfs.protocol.BlockType blockType) -
SnapshotCopy
-
-
Method Details
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin interfaceINodeAttributes
-
getFileReplication
public short getFileReplication()- Specified by:
getFileReplicationin interfaceINodeFileAttributes- Returns:
- the file replication.
-
isStriped
public boolean isStriped()- Specified by:
isStripedin interfaceINodeFileAttributes- Returns:
- whether the file is striped (instead of contiguous)
-
getBlockType
public org.apache.hadoop.hdfs.protocol.BlockType getBlockType()- Specified by:
getBlockTypein interfaceINodeFileAttributes- Returns:
- whether the file is striped (instead of contiguous)
-
getErasureCodingPolicyID
public byte getErasureCodingPolicyID()- Specified by:
getErasureCodingPolicyIDin interfaceINodeFileAttributes- Returns:
- the ID of the ErasureCodingPolicy
-
getPreferredBlockSize
public long getPreferredBlockSize()- Specified by:
getPreferredBlockSizein interfaceINodeFileAttributes- Returns:
- preferred block size in bytes
-
getLocalStoragePolicyID
public byte getLocalStoragePolicyID()- Specified by:
getLocalStoragePolicyIDin interfaceINodeFileAttributes
-
getHeaderLong
public long getHeaderLong()- Specified by:
getHeaderLongin interfaceINodeFileAttributes- Returns:
- the header as a long.
-
metadataEquals
- Specified by:
metadataEqualsin interfaceINodeFileAttributes
-