Class PathUtils.SuffixPathFilter

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

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

      • SuffixPathFilter

        public SuffixPathFilter​(String suffix)
        Public constructor.
        Parameters:
        suffix - suffix to use by ExtensionPathFilter
      • SuffixPathFilter

        public SuffixPathFilter​(String suffix,
                                boolean allowCompressedFile)
        Public constructor.
        Parameters:
        suffix - suffix 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