Class PathUtils.PrefixPathFilter

  • All Implemented Interfaces:
    org.apache.hadoop.fs.PathFilter
    Enclosing class:
    PathUtils

    public static final class PathUtils.PrefixPathFilter
    extends Object
    implements org.apache.hadoop.fs.PathFilter
    Simple PathFilter to filter Paths with their beginning
    Author:
    Laurent Jourdren
    • Constructor Detail

      • PrefixPathFilter

        public PrefixPathFilter​(String prefix)
        Public constructor.
        Parameters:
        prefix - extension to use by ExtensionPathFilter
      • PrefixPathFilter

        public PrefixPathFilter​(String prefix,
                                boolean allowCompressedFile)
        Public constructor.
        Parameters:
        prefix - extension to use by ExtensionPathFilter
        allowCompressedFile - allow files with a compressed extension
    • Method Detail

      • accept

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