Class Globber.GlobBuilder

java.lang.Object
org.apache.hadoop.fs.Globber.GlobBuilder
Enclosing class:
Globber

@Private public static class Globber.GlobBuilder extends Object
Builder for Globber instances.
  • Constructor Details

    • GlobBuilder

      public GlobBuilder(FileContext fc)
      Construct bonded to a file context.
      Parameters:
      fc - file context.
    • GlobBuilder

      public GlobBuilder(FileSystem fs)
      Construct bonded to a filesystem.
      Parameters:
      fs - file system.
  • Method Details

    • withPathPattern

      public Globber.GlobBuilder withPathPattern(Path pattern)
      Set the path pattern.
      Parameters:
      pattern - pattern to use.
      Returns:
      the builder
    • withPathFiltern

      public Globber.GlobBuilder withPathFiltern(PathFilter pathFilter)
      Set the path filter.
      Parameters:
      pathFilter - filter
      Returns:
      the builder
    • withResolveSymlinks

      public Globber.GlobBuilder withResolveSymlinks(boolean resolve)
      Set the symlink resolution policy.
      Parameters:
      resolve - resolution flag.
      Returns:
      the builder
    • build

      public Globber build()
      Build the Globber.
      Returns:
      a new instance.