Class NBIOWalker

java.lang.Object
io.nosqlbench.nb.api.nbio.NBIOWalker

public class NBIOWalker extends Object
  • Field Details

  • Constructor Details

    • NBIOWalker

      public NBIOWalker()
  • Method Details

    • walk

      public static void walk(Path p, NBIOWalker.PathVisitor v)
    • findAll

      public static List<Path> findAll(Path p)
    • walkShortPath

      public static void walkShortPath(Path p, NBIOWalker.PathVisitor v, DirectoryStream.Filter<Path> filter)
      This walks the directory structure starting at the path specified. The path visitor is invoked for every directory, and every non-directory which matches the filter. This form uses only the filename component in Paths to be matched by the filter, and the short name is also what is returned by the filter.
      Parameters:
      p - The path to search
      v - The visitor to accumulate or operate on matched paths and all directories
      filter - The Path filter to determine whether a path is included
    • walkFullPath

      public static void walkFullPath(Path p, NBIOWalker.PathVisitor v, DirectoryStream.Filter<Path> filter)
      This walks the directory structure starting at the path specified. The path visitor is invoked for every directory, and every non-directory which matches the filter. This form uses only the full path from the initial search path root in all Paths to be matched by the filter, and this form of a Path component is also returned in all Paths seen by the visitor.
      Parameters:
      p - The path to search
      v - The visitor to accumulate or operate on matched paths and all directories
      filter - The Path filter to determine whether a path is included
    • walk

      public static void walk(Path root, Path p, NBIOWalker.PathVisitor v, DirectoryStream.Filter<Path> filter, boolean fullpath)