org.apache.nutch.util
Class HadoopFSUtil

java.lang.Object
  extended by org.apache.nutch.util.HadoopFSUtil

public class HadoopFSUtil
extends Object


Constructor Summary
HadoopFSUtil()
           
 
Method Summary
static PathFilter getPassAllFilter()
          Returns PathFilter that passes all paths through.
static PathFilter getPassDirectoriesFilter(FileSystem fs)
          Returns PathFilter that passes directories through.
static Path[] getPaths(FileStatus[] stats)
          Turns an array of FileStatus into an array of Paths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopFSUtil

public HadoopFSUtil()
Method Detail

getPassAllFilter

public static PathFilter getPassAllFilter()
Returns PathFilter that passes all paths through.


getPassDirectoriesFilter

public static PathFilter getPassDirectoriesFilter(FileSystem fs)
Returns PathFilter that passes directories through.


getPaths

public static Path[] getPaths(FileStatus[] stats)
Turns an array of FileStatus into an array of Paths.



Copyright © 2006 The Apache Software Foundation