public class HiveStatsUtils extends Object
Constructor and Description |
---|
HiveStatsUtils() |
Modifier and Type | Method and Description |
---|---|
static List<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.
|
static List<org.apache.hadoop.fs.FileStatus> |
getFileStatusRecurse(org.apache.hadoop.fs.Path path,
int level,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.PathFilter filter) |
static List<org.apache.hadoop.fs.FileStatus> |
getFileStatusRecurse(org.apache.hadoop.fs.Path path,
int level,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.PathFilter filter,
boolean allLevelsBelow) |
static int |
getNumBitVectorsForNDVEstimation(org.apache.hadoop.conf.Configuration conf) |
public static List<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
public static List<org.apache.hadoop.fs.FileStatus> getFileStatusRecurse(org.apache.hadoop.fs.Path path, int level, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.PathFilter filter) throws IOException
IOException
public static List<org.apache.hadoop.fs.FileStatus> getFileStatusRecurse(org.apache.hadoop.fs.Path path, int level, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.PathFilter filter, boolean allLevelsBelow) throws IOException
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.