Package org.apache.hadoop.fs
Class Globber.GlobBuilder
java.lang.Object
org.apache.hadoop.fs.Globber.GlobBuilder
- Enclosing class:
- Globber
Builder for Globber instances.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct bonded to a file context.Construct bonded to a filesystem. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the Globber.withPathFiltern(PathFilter pathFilter) Set the path filter.withPathPattern(Path pattern) Set the path pattern.withResolveSymlinks(boolean resolve) Set the symlink resolution policy.
-
Constructor Details
-
GlobBuilder
Construct bonded to a file context.- Parameters:
fc- file context.
-
GlobBuilder
Construct bonded to a filesystem.- Parameters:
fs- file system.
-
-
Method Details
-
withPathPattern
Set the path pattern.- Parameters:
pattern- pattern to use.- Returns:
- the builder
-
withPathFiltern
Set the path filter.- Parameters:
pathFilter- filter- Returns:
- the builder
-
withResolveSymlinks
Set the symlink resolution policy.- Parameters:
resolve- resolution flag.- Returns:
- the builder
-
build
Build the Globber.- Returns:
- a new instance.
-