@InterfaceAudience.Private public abstract class MobCompactor extends Object
Modifier and Type | Field and Description |
---|---|
protected ColumnFamilyDescriptor |
column |
protected org.apache.hadoop.conf.Configuration |
conf |
protected org.apache.hadoop.fs.FileSystem |
fs |
protected org.apache.hadoop.fs.Path |
mobFamilyDir |
protected org.apache.hadoop.fs.Path |
mobTableDir |
protected ExecutorService |
pool |
protected TableName |
tableName |
Constructor and Description |
---|
MobCompactor(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName,
ColumnFamilyDescriptor column,
ExecutorService pool) |
Modifier and Type | Method and Description |
---|---|
List<org.apache.hadoop.fs.Path> |
compact()
Compacts the mob files for the current column family.
|
List<org.apache.hadoop.fs.Path> |
compact(boolean allFiles)
Compacts the mob files by compaction type for the current column family.
|
abstract List<org.apache.hadoop.fs.Path> |
compact(List<org.apache.hadoop.fs.FileStatus> files,
boolean allFiles)
Compacts the candidate mob files.
|
protected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.conf.Configuration conf
protected ColumnFamilyDescriptor column
protected org.apache.hadoop.fs.Path mobTableDir
protected org.apache.hadoop.fs.Path mobFamilyDir
protected ExecutorService pool
public MobCompactor(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, TableName tableName, ColumnFamilyDescriptor column, ExecutorService pool)
public List<org.apache.hadoop.fs.Path> compact() throws IOException
IOException
public List<org.apache.hadoop.fs.Path> compact(boolean allFiles) throws IOException
allFiles
- Whether add all mob files into the compaction.IOException
public abstract List<org.apache.hadoop.fs.Path> compact(List<org.apache.hadoop.fs.FileStatus> files, boolean allFiles) throws IOException
files
- The candidate mob files.allFiles
- Whether add all mob files into the compaction.IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.