@InterfaceAudience.Private public final class FSVisitor extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FSVisitor.LogFileVisitor |
static interface |
FSVisitor.RecoveredEditsVisitor |
static interface |
FSVisitor.RegionVisitor |
static interface |
FSVisitor.StoreFileVisitor |
| Modifier and Type | Method and Description |
|---|---|
static void |
visitLogFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
FSVisitor.LogFileVisitor visitor)
Iterate over hbase log files
|
static void |
visitRegionRecoveredEdits(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path regionDir,
FSVisitor.RecoveredEditsVisitor visitor)
Iterate over recovered.edits of the specified region
|
static void |
visitRegions(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir,
FSVisitor.RegionVisitor visitor)
Iterate over the table store files
|
static void |
visitRegionStoreFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path regionDir,
FSVisitor.StoreFileVisitor visitor)
Iterate over the region store files
|
static void |
visitTableRecoveredEdits(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir,
FSVisitor.RecoveredEditsVisitor visitor)
Iterate over each region in the table and inform about recovered.edits
|
static void |
visitTableStoreFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir,
FSVisitor.StoreFileVisitor visitor)
Iterate over the table store files
|
public static void visitRegions(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir,
FSVisitor.RegionVisitor visitor)
throws IOException
fs - FileSystemtableDir - Path to the table directoryvisitor - callback object to get the store filesIOException - if an error occurred while scanning the directorypublic static void visitTableStoreFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir,
FSVisitor.StoreFileVisitor visitor)
throws IOException
fs - FileSystemtableDir - Path to the table directoryvisitor - callback object to get the store filesIOException - if an error occurred while scanning the directorypublic static void visitRegionStoreFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path regionDir,
FSVisitor.StoreFileVisitor visitor)
throws IOException
fs - FileSystemregionDir - Path to the region directoryvisitor - callback object to get the store filesIOException - if an error occurred while scanning the directorypublic static void visitTableRecoveredEdits(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir,
FSVisitor.RecoveredEditsVisitor visitor)
throws IOException
fs - FileSystemtableDir - Path to the table directoryvisitor - callback object to get the recovered.edits filesIOException - if an error occurred while scanning the directorypublic static void visitRegionRecoveredEdits(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path regionDir,
FSVisitor.RecoveredEditsVisitor visitor)
throws IOException
fs - FileSystemregionDir - Path to the Region directoryvisitor - callback object to get the recovered.edits filesIOException - if an error occurred while scanning the directorypublic static void visitLogFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
FSVisitor.LogFileVisitor visitor)
throws IOException
fs - FileSystemrootDir - Path to the HBase root foldervisitor - callback object to get the log filesIOException - if an error occurred while scanning the directoryCopyright © 2014 The Apache Software Foundation. All rights reserved.