@InterfaceAudience.Private public abstract class MobFileCompactor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HColumnDescriptor |
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 |
|---|
MobFileCompactor(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName,
HColumnDescriptor 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 isForceAllFiles)
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 isForceAllFiles)
Compacts the candidate mob files.
|
protected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.conf.Configuration conf
protected TableName tableName
protected HColumnDescriptor column
protected org.apache.hadoop.fs.Path mobTableDir
protected org.apache.hadoop.fs.Path mobFamilyDir
protected ExecutorService pool
public MobFileCompactor(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName,
HColumnDescriptor column,
ExecutorService pool)
public List<org.apache.hadoop.fs.Path> compact() throws IOException
IOExceptionpublic List<org.apache.hadoop.fs.Path> compact(boolean isForceAllFiles) throws IOException
isForceAllFiles - Whether add all mob files into the compaction.IOExceptionpublic abstract List<org.apache.hadoop.fs.Path> compact(List<org.apache.hadoop.fs.FileStatus> files, boolean isForceAllFiles) throws IOException
files - The candidate mob files.isForceAllFiles - Whether add all mob files into the compaction.IOExceptionCopyright © 2007–2016 Cloudera. All rights reserved.