public class HiveStatsUtils extends Object
Constructor and Description |
---|
HiveStatsUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.fs.FileStatus[] |
getFileStatusRecurse(org.apache.hadoop.fs.Path path,
int level,
org.apache.hadoop.fs.FileSystem fs)
Get all file status from a root path and recursively go deep into certain levels.
|
public static org.apache.hadoop.fs.FileStatus[] getFileStatusRecurse(org.apache.hadoop.fs.Path path, int level, org.apache.hadoop.fs.FileSystem fs) throws IOException
path
- the root pathlevel
- the depth of directory to explorefs
- the file systemIOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.