@InterfaceAudience.Private public abstract class MobCompactor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.hbase.client.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 org.apache.hadoop.hbase.TableName |
tableName |
| Constructor and Description |
|---|
MobCompactor(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.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 org.apache.hadoop.hbase.TableName tableName
protected org.apache.hadoop.hbase.client.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,
org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.client.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–2020 The Apache Software Foundation. All rights reserved.