org.apache.hadoop.hive.common
Class HiveStatsUtils
java.lang.Object
org.apache.hadoop.hive.common.HiveStatsUtils
public class HiveStatsUtils
- extends Object
HiveStatsUtils.
A collection of utilities used for hive statistics.
Used by classes in both metastore and ql package
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HiveStatsUtils
public HiveStatsUtils()
getFileStatusRecurse
public static org.apache.hadoop.fs.FileStatus[] getFileStatusRecurse(org.apache.hadoop.fs.Path path,
int level,
org.apache.hadoop.fs.FileSystem fs)
throws IOException
- Get all file status from a root path and recursively go deep into certain levels.
- Parameters:
path - the root pathlevel - the depth of directory to explorefs - the file system
- Returns:
- array of FileStatus
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.