Package org.apache.hadoop.raid

Examples of org.apache.hadoop.raid.DirectoryTraversal$FilterFileWorkItem


    FileSystem fs = root.getFileSystem(conf);
    List<Path> allPaths = Arrays.asList(root);
    DirectoryTraversal.Filter filter = new VerifyParityFilter(conf, replicationLimit,
        code, restoreReplication);
    boolean allowUseStandby = false;
    DirectoryTraversal traversal =
      new DirectoryTraversal("Parity Verifier Retriever ", allPaths, fs, filter,
        directoryTraversalThreads, directoryTraversalShuffle, allowUseStandby);
    FileStatus newFile;
    while ((newFile = traversal.next()) != DirectoryTraversal.FINISH_TOKEN) {
      Path filePath = newFile.getPath();
      out.println(filePath.toUri().getPath());
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.raid.DirectoryTraversal$FilterFileWorkItem

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.