org.apache.hadoop.mapred
Class Utils.OutputFileUtils.OutputFilesFilter
java.lang.Object
org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter
org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter
- All Implemented Interfaces:
- org.apache.hadoop.fs.PathFilter
- Enclosing class:
- Utils.OutputFileUtils
public static class Utils.OutputFileUtils.OutputFilesFilter
- extends Utils.OutputFileUtils.OutputLogFilter
This class filters output(part) files from the given directory
It does not accept files with filenames _logs and _SUCCESS.
This can be used to list paths of output directory as follows:
Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
new OutputFilesFilter()));
Method Summary |
boolean |
accept(org.apache.hadoop.fs.Path path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils.OutputFileUtils.OutputFilesFilter
public Utils.OutputFileUtils.OutputFilesFilter()
accept
public boolean accept(org.apache.hadoop.fs.Path path)
- Specified by:
accept
in interface org.apache.hadoop.fs.PathFilter
- Overrides:
accept
in class Utils.OutputFileUtils.OutputLogFilter
Copyright © 2013 Apache Software Foundation. All Rights Reserved.