org.apache.hadoop.mapred
Class OutputLogFilter

java.lang.Object
  extended by org.apache.hadoop.mapred.OutputLogFilter
All Implemented Interfaces:
org.apache.hadoop.fs.PathFilter

@InterfaceAudience.Public
@InterfaceStability.Stable
public class OutputLogFilter
extends Object
implements org.apache.hadoop.fs.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
OutputLogFilter()
           
 
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
 

Constructor Detail

OutputLogFilter

public OutputLogFilter()
Method Detail

accept

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


Copyright © 2012 Apache Software Foundation. All Rights Reserved.