Class FileAndDirectoryInputFormat.MultiPathFilter

  • All Implemented Interfaces:
    org.apache.hadoop.fs.PathFilter
    Enclosing class:
    FileAndDirectoryInputFormat<K,​V>

    public static class FileAndDirectoryInputFormat.MultiPathFilter
    extends Object
    implements org.apache.hadoop.fs.PathFilter
    Proxy PathFilter that accepts a path only if all filters given in the constructor do. Used by the listPaths() to apply the built-in hiddenFileFilter together with a user provided one (if any).
    • Constructor Detail

      • MultiPathFilter

        public MultiPathFilter​(List<org.apache.hadoop.fs.PathFilter> filters)
    • Method Detail

      • accept

        public boolean accept​(org.apache.hadoop.fs.Path path)
        Specified by:
        accept in interface org.apache.hadoop.fs.PathFilter