Java 类org.apache.hadoop.hdfs.server.namenode.FsImageProto.INodeSection.INodeFile 实例源码

项目:hadoop-on-lustre2    文件:LsrPBImage.java   
private long getFileSize(INodeFile f) {
  long size = 0;
  for (BlockProto p : f.getBlocksList()) {
    size += p.getNumBytes();
  }
  return size;
}