Package org.apache.hadoop.hbase.util
Class FSVisitor
java.lang.Object
org.apache.hadoop.hbase.util.FSVisitor
Utility methods for interacting with the hbase.root file system.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
visitRegionStoreFiles
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path regionDir, FSVisitor.StoreFileVisitor visitor) Iterate over the region store filesstatic void
visitTableStoreFiles
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, FSVisitor.StoreFileVisitor visitor) Iterate over the table store files
-
Field Details
-
LOG
-
-
Constructor Details
-
FSVisitor
private FSVisitor()
-
-
Method Details
-
visitTableStoreFiles
public static void visitTableStoreFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir, FSVisitor.StoreFileVisitor visitor) throws IOException Iterate over the table store files- Parameters:
fs
-FileSystem
tableDir
-Path
to the table directoryvisitor
- callback object to get the store files- Throws:
IOException
- if an error occurred while scanning the directory
-
visitRegionStoreFiles
public static void visitRegionStoreFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path regionDir, FSVisitor.StoreFileVisitor visitor) throws IOException Iterate over the region store files- Parameters:
fs
-FileSystem
regionDir
-Path
to the region directoryvisitor
- callback object to get the store files- Throws:
IOException
- if an error occurred while scanning the directory
-