|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.FSVisitor
@InterfaceAudience.Private public final class FSVisitor
Utility methods for interacting with the hbase.root file system.
Nested Class Summary | |
---|---|
static interface |
FSVisitor.LogFileVisitor
|
static interface |
FSVisitor.RecoveredEditsVisitor
|
static interface |
FSVisitor.RegionVisitor
|
static interface |
FSVisitor.StoreFileVisitor
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void visitRegions(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, FSVisitor.RegionVisitor visitor) throws IOException
fs
- FileSystem
tableDir
- Path
to the table directoryvisitor
- callback object to get the store files
IOException
- 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
- FileSystem
tableDir
- Path
to the table directoryvisitor
- callback object to get the store files
IOException
- 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
- FileSystem
regionDir
- Path
to the region directoryvisitor
- callback object to get the store files
IOException
- 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
- FileSystem
tableDir
- Path
to the table directoryvisitor
- callback object to get the recovered.edits files
IOException
- 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
- FileSystem
regionDir
- Path
to the Region directoryvisitor
- callback object to get the recovered.edits files
IOException
- 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
- FileSystem
rootDir
- Path
to the HBase root foldervisitor
- callback object to get the log files
IOException
- if an error occurred while scanning the directory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |