@InterfaceAudience.Private public abstract class MobCompactor extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 构造器和说明 |
|---|
MobCompactor(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName,
ColumnFamilyDescriptor column,
ExecutorService pool) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 TableName tableName
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
IOExceptionpublic List<org.apache.hadoop.fs.Path> compact(boolean allFiles) throws IOException
allFiles - 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 allFiles) throws IOException
files - The candidate mob files.allFiles - Whether add all mob files into the compaction.IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.