Class FSVisitor

java.lang.Object
org.apache.hadoop.hbase.util.FSVisitor

@Private public final class FSVisitor extends Object
Utility methods for interacting with the hbase.root file system.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
  • Constructor Details

  • 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 directory
      visitor - 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 directory
      visitor - callback object to get the store files
      Throws:
      IOException - if an error occurred while scanning the directory