public class HadoopFSUtil extends Object
Constructor and Description |
---|
HadoopFSUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static org.apache.hadoop.fs.PathFilter getPassAllFilter()
public static org.apache.hadoop.fs.PathFilter getPassDirectoriesFilter(org.apache.hadoop.fs.FileSystem fs)
public static org.apache.hadoop.fs.Path[] getPaths(org.apache.hadoop.fs.FileStatus[] stats)
Copyright © 2014 The Apache Software Foundation