Package org.apache.nutch.util
Class HadoopFSUtil
- java.lang.Object
-
- org.apache.nutch.util.HadoopFSUtil
-
public class HadoopFSUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description HadoopFSUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathFiltergetPassAllFilter()Get a path filter which allows all paths.static PathFiltergetPassDirectoriesFilter(FileSystem fs)Get a path filter which allows all directories.static Path[]getPaths(FileStatus[] stats)Turns an array of FileStatus into an array of Paths.
-
-
-
Method Detail
-
getPassAllFilter
public static PathFilter getPassAllFilter()
Get a path filter which allows all paths.- Returns:
PathFilter
-
getPassDirectoriesFilter
public static PathFilter getPassDirectoriesFilter(FileSystem fs)
Get a path filter which allows all directories.- Parameters:
fs- AFileSystemused to determine directories.- Returns:
PathFilter
-
getPaths
public static Path[] getPaths(FileStatus[] stats)
Turns an array of FileStatus into an array of Paths. May return null if input is null.- Parameters:
stats- AFileStatusarray- Returns:
Patharray
-
-