@InterfaceAudience.Private public final class FSVisitor extends java.lang.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(FileSystem fs,
Path rootDir,
FSVisitor.LogFileVisitor visitor)
Iterate over hbase log files
|
static void |
visitRegionRecoveredEdits(FileSystem fs,
Path regionDir,
FSVisitor.RecoveredEditsVisitor visitor)
Iterate over recovered.edits of the specified region
|
static void |
visitRegions(FileSystem fs,
Path tableDir,
FSVisitor.RegionVisitor visitor)
Iterate over the table store files
|
static void |
visitRegionStoreFiles(FileSystem fs,
Path regionDir,
FSVisitor.StoreFileVisitor visitor)
Iterate over the region store files
|
static void |
visitTableRecoveredEdits(FileSystem fs,
Path tableDir,
FSVisitor.RecoveredEditsVisitor visitor)
Iterate over each region in the table and inform about recovered.edits
|
static void |
visitTableStoreFiles(FileSystem fs,
Path tableDir,
FSVisitor.StoreFileVisitor visitor)
Iterate over the table store files
|
public static void visitRegions(FileSystem fs,
Path tableDir,
FSVisitor.RegionVisitor visitor)
throws java.io.IOException
fs - FileSystemtableDir - Path to the table directoryvisitor - callback object to get the store filesjava.io.IOException - if an error occurred while scanning the directorypublic static void visitTableStoreFiles(FileSystem fs,
Path tableDir,
FSVisitor.StoreFileVisitor visitor)
throws java.io.IOException
fs - FileSystemtableDir - Path to the table directoryvisitor - callback object to get the store filesjava.io.IOException - if an error occurred while scanning the directorypublic static void visitRegionStoreFiles(FileSystem fs,
Path regionDir,
FSVisitor.StoreFileVisitor visitor)
throws java.io.IOException
fs - FileSystemregionDir - Path to the region directoryvisitor - callback object to get the store filesjava.io.IOException - if an error occurred while scanning the directorypublic static void visitTableRecoveredEdits(FileSystem fs,
Path tableDir,
FSVisitor.RecoveredEditsVisitor visitor)
throws java.io.IOException
fs - FileSystemtableDir - Path to the table directoryvisitor - callback object to get the recovered.edits filesjava.io.IOException - if an error occurred while scanning the directorypublic static void visitRegionRecoveredEdits(FileSystem fs,
Path regionDir,
FSVisitor.RecoveredEditsVisitor visitor)
throws java.io.IOException
fs - FileSystemregionDir - Path to the Region directoryvisitor - callback object to get the recovered.edits filesjava.io.IOException - if an error occurred while scanning the directorypublic static void visitLogFiles(FileSystem fs,
Path rootDir,
FSVisitor.LogFileVisitor visitor)
throws java.io.IOException
fs - FileSystemrootDir - Path to the HBase root foldervisitor - callback object to get the log filesjava.io.IOException - if an error occurred while scanning the directory