Package tachyon

Examples of tachyon.TachyonURI.join()


    String[] splitPath = CommonUtils.getPathComponents(path.toString());
    UiFileInfo[] pathInfos = new UiFileInfo[splitPath.length - 1];
    TachyonURI currentPath = new TachyonURI(TachyonURI.SEPARATOR);
    pathInfos[0] = new UiFileInfo(mMasterInfo.getClientFileInfo(currentPath));
    for (int i = 1; i < splitPath.length - 1; i ++) {
      currentPath = currentPath.join(splitPath[i]);
      pathInfos[i] = new UiFileInfo(mMasterInfo.getClientFileInfo(currentPath));
    }
    request.setAttribute("pathInfos", pathInfos);
  }
}
View Full Code Here


    for (int i = 0; i < 10; i ++) {
      TachyonURI dir = new TachyonURI("/i" + i);
      mMasterInfo.mkdirs(dir, true);
      dirIds.add(mMasterInfo.getFileId(dir));
      for (int j = 0; j < 10; j ++) {
        ids.add(mMasterInfo.createFile(dir.join("j" + j), 64));
      }
    }
    HashSet<Integer> listedIds =
        new HashSet<Integer>(mMasterInfo.listFiles(new TachyonURI("/"), true));
    HashSet<Integer> listedDirIds =
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.