Class NBIOWalker
java.lang.Object
io.nosqlbench.nb.api.nbio.NBIOWalker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfacestatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidwalk(Path p, NBIOWalker.PathVisitor v) static voidwalk(Path root, Path p, NBIOWalker.PathVisitor v, DirectoryStream.Filter<Path> filter, boolean fullpath) static voidwalkFullPath(Path p, NBIOWalker.PathVisitor v, DirectoryStream.Filter<Path> filter) This walks the directory structure starting at the path specified.static voidwalkShortPath(Path p, NBIOWalker.PathVisitor v, DirectoryStream.Filter<Path> filter) This walks the directory structure starting at the path specified.
-
Field Details
-
WALK_ALL
-
-
Constructor Details
-
NBIOWalker
public NBIOWalker()
-
-
Method Details
-
walk
-
findAll
-
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 searchv- The visitor to accumulate or operate on matched paths and all directoriesfilter- 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 searchv- The visitor to accumulate or operate on matched paths and all directoriesfilter- 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)
-