@InterfaceAudience.Private public class MobFileCompactionChore extends ScheduledChore
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private HMaster |
master |
private int |
regionBatchSize |
| Constructor and Description |
|---|
MobFileCompactionChore(org.apache.hadoop.conf.Configuration conf,
int batchSize) |
MobFileCompactionChore(HMaster master) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
void |
performMajorCompactionInBatches(Admin admin,
TableDescriptor htd,
ColumnFamilyDescriptor hcd) |
private void |
startCompaction(Admin admin,
TableName table,
RegionInfo region,
byte[] cf) |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNowprivate static final org.slf4j.Logger LOG
private int regionBatchSize
public MobFileCompactionChore(HMaster master)
public MobFileCompactionChore(org.apache.hadoop.conf.Configuration conf, int batchSize)
protected void chore()
ScheduledChorechore in class ScheduledChorepublic void performMajorCompactionInBatches(Admin admin, TableDescriptor htd, ColumnFamilyDescriptor hcd) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate void startCompaction(Admin admin, TableName table, RegionInfo region, byte[] cf) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.