Package org.apache.hadoop.hdfs.server.namenode.FsImageProto.INodeSection

Examples of org.apache.hadoop.hdfs.server.namenode.FsImageProto.INodeSection.INode


      IOUtils.cleanup(null, fin);
    }
  }

  private void list(String parent, long dirId) {
    INode inode = inodes.get(dirId);
    if (LOG.isTraceEnabled()) {
      LOG.trace("Listing directory id " + dirId + " parent '" + parent
          + "' (INode is " + inode + ")");
    }
    listINode(parent.isEmpty() ? "/" : parent, inode);
    long[] children = dirmap.get(dirId);
    if (children == null) {
      return;
    }
    String newParent = parent + inode.getName().toStringUtf8() + "/";
    for (long cid : children) {
      list(newParent, cid);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.namenode.FsImageProto.INodeSection.INode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.