Class PathUtils.SuffixPathFilter
java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.hadoop.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 Summary
ConstructorsConstructorDescriptionSuffixPathFilter(String suffix) Public constructor.SuffixPathFilter(String suffix, boolean allowCompressedFile) Public constructor. -
Method Summary
-
Constructor Details
-
SuffixPathFilter
Public constructor.- Parameters:
suffix- suffix to use by ExtensionPathFilter
-
SuffixPathFilter
Public constructor.- Parameters:
suffix- suffix to use by ExtensionPathFilterallowCompressedFile- allow files with a compressed extension
-
-
Method Details
-
accept
public boolean accept(org.apache.hadoop.fs.Path path) - Specified by:
acceptin interfaceorg.apache.hadoop.fs.PathFilter
-