Package org.apache.hadoop.hbase.mob
Class MobFileCleanupUtil
java.lang.Object
org.apache.hadoop.hbase.mob.MobFileCleanupUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
archiveMobFiles
(org.apache.hadoop.conf.Configuration conf, TableName tableName, Admin admin, byte[] family, List<org.apache.hadoop.fs.Path> storeFiles) Archives the mob files.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) static void
cleanupObsoleteMobFiles
(org.apache.hadoop.conf.Configuration conf, TableName table, Admin admin) Performs housekeeping file cleaning (called by MOB Cleaner chore)
-
Field Details
-
LOG
-
-
Constructor Details
-
MobFileCleanupUtil
private MobFileCleanupUtil()
-
-
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
- configurationtable
- 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
-