Interface INodeFileAttributes
- All Superinterfaces:
INodeAttributes
- All Known Implementing Classes:
INodeFile,INodeFileAttributes.SnapshotCopy
The attributes of a file.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA copy of the inode file attributes -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.protocol.BlockTypebyteshortlongbytelongbooleanbooleanMethods inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
getAccessTime, getAclFeature, getFsPermission, getFsPermissionShort, getGroupName, getLocalNameBytes, getModificationTime, getPermissionLong, getUserName, getXAttrFeature, isDirectory
-
Method Details
-
getFileReplication
short getFileReplication()- Returns:
- the file replication.
-
isStriped
boolean isStriped()- Returns:
- whether the file is striped (instead of contiguous)
-
getBlockType
org.apache.hadoop.hdfs.protocol.BlockType getBlockType()- Returns:
- whether the file is striped (instead of contiguous)
-
getErasureCodingPolicyID
byte getErasureCodingPolicyID()- Returns:
- the ID of the ErasureCodingPolicy
-
getPreferredBlockSize
long getPreferredBlockSize()- Returns:
- preferred block size in bytes
-
getHeaderLong
long getHeaderLong()- Returns:
- the header as a long.
-
metadataEquals
-
getLocalStoragePolicyID
byte getLocalStoragePolicyID()
-