@InterfaceAudience.Private public abstract class MobCompactor extends Object
Modifier and Type | Field and Description |
---|---|
protected HColumnDescriptor |
column |
protected Configuration |
conf |
protected FileSystem |
fs |
protected Path |
mobFamilyDir |
protected Path |
mobTableDir |
protected ExecutorService |
pool |
protected TableName |
tableName |
Constructor and Description |
---|
MobCompactor(Configuration conf,
FileSystem fs,
TableName tableName,
HColumnDescriptor column,
ExecutorService pool) |
Modifier and Type | Method and Description |
---|---|
List<Path> |
compact()
Compacts the mob files for the current column family.
|
List<Path> |
compact(boolean allFiles)
Compacts the mob files by compaction type for the current column family.
|
abstract List<Path> |
compact(List<FileStatus> files,
boolean allFiles)
Compacts the candidate mob files.
|
protected FileSystem fs
protected Configuration conf
protected TableName tableName
protected HColumnDescriptor column
protected Path mobTableDir
protected Path mobFamilyDir
protected ExecutorService pool
public MobCompactor(Configuration conf, FileSystem fs, TableName tableName, HColumnDescriptor column, ExecutorService pool)
public List<Path> compact() throws IOException
IOException
public List<Path> compact(boolean allFiles) throws IOException
allFiles
- Whether add all mob files into the compaction.IOException
public abstract List<Path> compact(List<FileStatus> files, boolean allFiles) throws IOException
files
- The candidate mob files.allFiles
- Whether add all mob files into the compaction.IOException