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 org.apache.hadoop.fs.PathFilter getPassAllFilter()
          Returns PathFilter that passes all paths through.
static org.apache.hadoop.fs.PathFilter getPassDirectoriesFilter(org.apache.hadoop.fs.FileSystem fs)
          Returns PathFilter that passes directories through.
static org.apache.hadoop.fs.Path[] getPaths(org.apache.hadoop.fs.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 org.apache.hadoop.fs.PathFilter getPassAllFilter()
Returns PathFilter that passes all paths through.


getPassDirectoriesFilter

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


getPaths

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



Copyright © 2013 The Apache Software Foundation