INodeFile类图描述

针对具体存储在hdfs上的文件有个对象来模型化他那就是INodeFile这个类,因为hdfs文件系统也是树形结构的,故衍生出一些其他类来模型化这些对象,见类图描述如下

 


   INode

 

Java代码     收藏代码
  1. /**  
  2.  * We keep an in-memory representation of the file/block hierarchy.  
  3.  * This is a base INode class containing common fields for file and   
  4.  * directory inodes.  
  5.  */   

 

    INodeFile

 

Java代码     收藏代码
  1. hdfs中文件的描述形式,文件的静态属性描述  

 

    INodeFileUnderConstruction

 

Java代码     收藏代码
  1. hdfs中文件的动态描述形式   例如租约持有期间的更新等,例如块的恢复等。  
  2.   
  3. clientName;         // lease holder   
  4. primaryNodeIndex = -1 //the node working on lease recovery   
  5. DatanodeDescriptor[] targets = null ;    //locations for last block   
  6. long  lastRecoveryTime  

 

      INodeDirectory

 

Java代码     收藏代码
  1. /**  
  2.  * Directory INode class.  
  3.  */   

 

     INodeDirectoryWithQuota

 

Java代码     收藏代码
  1. /**  
  2.  * Directory INode class that has a quota restriction  
  3.  */   

 

     DirCounts

 

Java代码     收藏代码
  1. /** Simple wrapper for two counters :   
  2.   *  nsCount (namespace consumed) and dsCount (diskspace consumed).  
  3.   */   

 

更多信息请查看 java进阶网 http://www.javady.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值