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