Interface INodeFileAttributes

All Superinterfaces:
INodeAttributes
All Known Implementing Classes:
INodeFile, INodeFileAttributes.SnapshotCopy

@Private public interface INodeFileAttributes extends INodeAttributes
The attributes of a file.
  • 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

      boolean metadataEquals(INodeFileAttributes other)
    • getLocalStoragePolicyID

      byte getLocalStoragePolicyID()