Class MobFileCleanupUtil

java.lang.Object
org.apache.hadoop.hbase.mob.MobFileCleanupUtil

@Private public final class MobFileCleanupUtil extends Object
  • Field Details

    • LOG

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

  • Method Details

    • cleanupObsoleteMobFiles

      public static void cleanupObsoleteMobFiles(org.apache.hadoop.conf.Configuration conf, TableName table, Admin admin) throws IOException
      Performs housekeeping file cleaning (called by MOB Cleaner chore)
      Parameters:
      conf - configuration
      table - table name
      Throws:
      IOException - exception
    • checkColumnFamilyDescriptor

      private static void checkColumnFamilyDescriptor(org.apache.hadoop.conf.Configuration conf, TableName table, org.apache.hadoop.fs.FileSystem fs, Admin admin, ColumnFamilyDescriptor hcd, Set<String> regionNames, long maxCreationTimeToArchive) throws IOException
      Throws:
      IOException
    • archiveMobFiles

      private static void archiveMobFiles(org.apache.hadoop.conf.Configuration conf, TableName tableName, Admin admin, byte[] family, List<org.apache.hadoop.fs.Path> storeFiles) throws IOException
      Archives the mob files.
      Parameters:
      conf - The current configuration.
      tableName - The table name.
      family - The name of the column family.
      storeFiles - The files to be archived.
      Throws:
      IOException - exception