Package org.apache.hadoop.mapred
Class OutputLogFilter
java.lang.Object
org.apache.hadoop.mapred.OutputLogFilter
- All Implemented Interfaces:
PathFilter
This class filters log files from directory given
It doesnt accept paths having _logs.
This can be used to list paths of output directory as follows:
Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
new OutputLogFilter()));
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OutputLogFilter
public OutputLogFilter()
-
-
Method Details
-
accept
Description copied from interface:PathFilterTests whether or not the specified abstract pathname should be included in a pathname list.- Specified by:
acceptin interfacePathFilter- Parameters:
path- The abstract pathname to be tested- Returns:
trueif and only ifpathnameshould be included
-